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

Method renorm_enc_interval

src/arithmeticencoder.cpp:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340inline void ArithmeticEncoder::renorm_enc_interval()
341{
342 do { // output and discard top byte
343 assert(outbuffer <= outbyte);
344 assert(outbyte < endbuffer);
345 assert(outbyte < endbyte);
346 *outbyte++ = (U8)(base >> 24);
347 if (outbyte == endbyte) manage_outbuffer();
348 base <<= 8;
349 } while ((length <<= 8) < AC__MinLength); // length multiplied by 256
350}
351
352inline void ArithmeticEncoder::manage_outbuffer()
353{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected