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

Method propagate_carry

src/arithmeticencoder.cpp:319–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319inline void ArithmeticEncoder::propagate_carry()
320{
321 U8 * p;
322 if (outbyte == outbuffer)
323 p = endbuffer - 1;
324 else
325 p = outbyte - 1;
326 while (*p == 0xFFU)
327 {
328 *p = 0;
329 if (p == outbuffer)
330 p = endbuffer - 1;
331 else
332 p--;
333 assert(outbuffer <= p);
334 assert(p < endbuffer);
335 assert(outbyte < endbuffer);
336 }
337 ++*p;
338}
339
340inline void ArithmeticEncoder::renorm_enc_interval()
341{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected