diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-17 12:16:38 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-03-21 23:25:36 +0100 |
commit | 86c909558ce3e7505d5a63647c27cd0a4314a603 (patch) | |
tree | 05296e13d5d68a282271d8e5c950a86db5be015f /libavcodec/mathops.h | |
parent | 495de744fa949eb789441349736bedc2301d0b61 (diff) | |
download | ffmpeg-86c909558ce3e7505d5a63647c27cd0a4314a603.tar.gz |
avcodec/internal: Move FF_SIGNBIT and ff_log2_run to mathops.h
It is a more fitting place for them.
Also move the definition of ff_log2_run to mathtables.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r-- | libavcodec/mathops.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index 239e0e492f..f81d21f9c4 100644 --- a/libavcodec/mathops.h +++ b/libavcodec/mathops.h @@ -30,6 +30,7 @@ #define MAX_NEG_CROP 1024 extern const uint32_t ff_inverse[257]; +extern const uint8_t ff_log2_run[41]; extern const uint8_t ff_sqrt_tab[256]; extern const uint8_t ff_crop_tab[256 + 2 * MAX_NEG_CROP]; extern const uint8_t ff_zigzag_direct[64]; @@ -125,6 +126,8 @@ static inline av_const int median4(int a, int b, int c, int d) } #endif +#define FF_SIGNBIT(x) ((x) >> CHAR_BIT * sizeof(x) - 1) + #ifndef sign_extend static inline av_const int sign_extend(int val, unsigned bits) { |