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

Method writeShort

unused/rangeencoder.cpp:260–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260void RangeEncoder::writeShort(U16 sym)
261{
262 U32 r, tmp;
263 normalize();
264 r = range >> 16;
265 tmp = r * (U32)(sym);
266 low += tmp;
267#ifdef EXTRAFAST
268 range = r;
269#else
270 if (((U32)(sym)+1) >> 16)
271 {
272 range -= tmp;
273 }
274 else
275 {
276 range = r;
277 }
278#endif
279}
280
281void RangeEncoder::writeInt(U32 sym)
282{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected