MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__bit_reverse

Function stbi__bit_reverse

Source/Utils/stb_image.h:4115–4121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4113}
4114
4115stbi_inline static int stbi__bit_reverse(int v, int bits)
4116{
4117 STBI_ASSERT(bits <= 16);
4118 // to bit reverse n bits, reverse 16 and shift
4119 // e.g. 11 bits, bit reverse and shift away 5
4120 return stbi__bitreverse16(v) >> (16-bits);
4121}
4122
4123static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)
4124{

Callers 2

stbi__zbuild_huffmanFunction · 0.85

Calls 1

stbi__bitreverse16Function · 0.85

Tested by

no test coverage detected