MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Math_ilog2

Function Math_ilog2

src/ExtMath.c:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int Math_ilog2(cc_uint32 value) {
24 cc_uint32 r = 0;
25 while (value >>= 1) r++;
26 return r;
27}
28
29int Math_CeilDiv(int a, int b) {
30 return a / b + (a % b != 0 ? 1 : 0);

Callers 15

imdct_initFunction · 0.85
LavaAnimation_TickFunction · 0.85
WaterAnimation_TickFunction · 0.85
Atlas_Update1DFunction · 0.85
Fallback_CellWidthFunction · 0.85
Gfx_BindTextureFunction · 0.85
Gfx_BindTextureFunction · 0.85
CalcMipmapsLevelsFunction · 0.85
Gfx_BindTextureFunction · 0.85
Gfx_AllocTextureFunction · 0.85
Gfx_AllocTextureFunction · 0.85
AllocTextureAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected