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

Method writeByte

unused/rangeencoder.cpp:239–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void RangeEncoder::writeByte(U8 sym)
240{
241 U32 r, tmp;
242 normalize();
243 r = range >> 8;
244 tmp = r * (U32)(sym);
245 low += tmp;
246#ifdef EXTRAFAST
247 range = r;
248#else
249 if (((U32)(sym)+1) >> 8)
250 {
251 range -= tmp;
252 }
253 else
254 {
255 range = r;
256 }
257#endif
258}
259
260void RangeEncoder::writeShort(U16 sym)
261{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected