MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / compressedSignedInt

Function compressedSignedInt

test/dotnet-parser-tests.ts:105–108  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

103}
104
105function compressedSignedInt(value: number): Buffer {
106 const encoded = value >= 0 ? value << 1 : (((1 << 6) + value) << 1) | 1;
107 return compressedUInt(encoded);
108}
109
110function align4(value: number) {
111 return (value + 3) & ~3;

Callers 1

sequencePointsFunction · 0.85

Calls 1

compressedUIntFunction · 0.85

Tested by

no test coverage detected