diff options
author | Janne Grunau <janne-vlc@jannau.net> | 2018-11-05 00:23:02 +0300 |
---|---|---|
committer | Janne Grunau <janne-vlc@jannau.net> | 2018-11-05 00:28:02 +0300 |
commit | d439328844afdb853d4ff23f74d310bfc1211109 (patch) | |
tree | 3e534c57d5fec569b00e2a9dc91f8cc8c29d15e2 /include/common | |
parent | d5421c300785f9234dc9a31597ed259551290243 (diff) |
move rl32() to its only user tools/dav1d/input/ivf.c
Replace it with the version used in dav1d_fuzzer to avoid an integer
promotion.
Diffstat (limited to 'include/common')
-rw-r--r-- | include/common/intops.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/common/intops.h b/include/common/intops.h index 61b891d..ddfa62d 100644 --- a/include/common/intops.h +++ b/include/common/intops.h @@ -60,14 +60,6 @@ static inline int u64log2(const uint64_t v) { return 63 - clzll(v); } -static inline unsigned rl16(const uint8_t *const ptr) { - return (ptr[1] << 8) | ptr[0]; -} - -static inline unsigned rl32(const uint8_t *const ptr) { - return (rl16(&ptr[2]) << 16) | rl16(ptr); -} - static inline unsigned inv_recenter(const unsigned r, const unsigned v) { if (v > (r << 1)) return v; |