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

Function Math_Ceil

src/ExtMath.c:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18int Math_Ceil(float value) {
19 int valueI = (int)value;
20 return valueI < value ? valueI + 1 : valueI;
21}
22
23int Math_ilog2(cc_uint32 value) {
24 cc_uint32 r = 0;

Callers 7

HotbarWidget_RepositionFunction · 0.85
SysFont_TextWidthFunction · 0.85
DisconnectScreen_UpdateFunction · 0.85
IsometricDrawer_FlatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected