MCPcopy Create free account
hub / github.com/LASzip/LASzip / culshift

Method culshift

unused/rangedecoder.cpp:231–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231U32 RangeDecoder::culshift(U32 shift)
232{
233 U32 tmp;
234 normalize();
235 help = range>>shift;
236 tmp = low/help;
237#ifdef EXTRAFAST
238 return tmp;
239#else
240 return (tmp>>shift ? (1u<<shift)-1 : tmp);
241#endif
242}
243
244/* Update decoding state */
245/* sy_f is the interval length (frequency of the symbol) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected