MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / sign_extend64

Function sign_extend64

libavcodec/mathops.h:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143#ifndef sign_extend64
144static inline av_const int64_t sign_extend64(int64_t val, unsigned bits)
145{
146 unsigned shift = 8 * sizeof(int64_t) - bits;
147 union { uint64_t u; int64_t s; } v = { (uint64_t) val << shift };
148 return v.s >> shift;
149}
150#endif
151
152#ifndef zero_extend

Callers 2

get_sbits64Function · 0.85
check_lpc33Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected