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

Function zero_extend

libavcodec/mathops.h:153–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152#ifndef zero_extend
153static inline av_const unsigned zero_extend(unsigned val, unsigned bits)
154{
155 return (val << ((8 * sizeof(int)) - bits)) >> ((8 * sizeof(int)) - bits);
156}
157#endif
158
159#ifndef COPY3_IF_LT

Callers 2

CBS_FUNC(write_signed)Function · 0.85
get_xbits_leFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected