diff options
author | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h')
-rw-r--r-- | debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h b/debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h new file mode 100644 index 00000000..aa3aba67 --- /dev/null +++ b/debian/mp4v2/mp4v2-2.0.0~dfsg0/src/util.h @@ -0,0 +1,82 @@ +#ifndef MP4V2_IMPL_UTIL_H +#define MP4V2_IMPL_UTIL_H + +namespace mp4v2 { namespace impl { + +/////////////////////////////////////////////////////////////////////////////// + +inline int8_t max( int8_t a, int8_t b ) { + return ( a > b ) ? a : b; +} + +inline int16_t max( int16_t a, int16_t b ) { + return ( a > b ) ? a : b; +} + +inline int32_t max( int32_t a, int32_t b ) { + return ( a > b ) ? a : b; +} + +inline int64_t max( int64_t a, int64_t b ) { + return ( a > b ) ? a : b; +} + +/////////////////////////////////////////////////////////////////////////////// + +inline uint8_t max( uint8_t a, uint8_t b ) { + return ( a > b ) ? a : b; +} + +inline uint16_t max( uint16_t a, uint16_t b ) { + return ( a > b ) ? a : b; +} + +inline uint32_t max( uint32_t a, uint32_t b ) { + return ( a > b ) ? a : b; +} + +inline uint64_t max( uint64_t a, uint64_t b ) { + return ( a > b ) ? a : b; +} + +/////////////////////////////////////////////////////////////////////////////// + +inline int8_t min( int8_t a, int8_t b ) { + return ( a < b ) ? a : b; +} + +inline int16_t min( int16_t a, int16_t b ) { + return ( a < b ) ? a : b; +} + +inline int32_t min( int32_t a, int32_t b ) { + return ( a < b ) ? a : b; +} + +inline int64_t min( int64_t a, int64_t b ) { + return ( a < b ) ? a : b; +} + +/////////////////////////////////////////////////////////////////////////////// + +inline uint8_t min( uint8_t a, uint8_t b ) { + return ( a < b ) ? a : b; +} + +inline uint16_t min( uint16_t a, uint16_t b ) { + return ( a < b ) ? a : b; +} + +inline uint32_t min( uint32_t a, uint32_t b ) { + return ( a < b ) ? a : b; +} + +inline uint64_t min( uint64_t a, uint64_t b ) { + return ( a < b ) ? a : b; +} + +/////////////////////////////////////////////////////////////////////////////// + +}} // namespace mp4v2::impl + +#endif // MP4V2_IMPL_UTIL_H |