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

Method writeShort

src/arithmeticencoder.cpp:284–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void ArithmeticEncoder::writeShort(U16 sym)
285{
286 U32 init_base = base;
287 base += (U32)(sym) * (length >>= 16); // new interval base and length
288
289 if (init_base > base) propagate_carry(); // overflow = carry
290 if (length < AC__MinLength) renorm_enc_interval(); // renormalization
291}
292
293void ArithmeticEncoder::writeInt(U32 sym)
294{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected