MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_ceil

Function SDL_ceil

deps/SDL2/src/stdlib/SDL_stdlib.c:130–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130double
131SDL_ceil(double x)
132{
133#if defined(HAVE_CEIL)
134 return ceil(x);
135#else
136 double integer = SDL_floor(x);
137 double fraction = x - integer;
138 if (fraction > 0.0) {
139 integer += 1.0;
140 }
141 return integer;
142#endif /* HAVE_CEIL */
143}
144
145float
146SDL_ceilf(float x)

Callers 11

ResamplerPaddingFunction · 0.85
SDL_AudioStreamFlushFunction · 0.85
UpdateLogicalSizeFunction · 0.85
SDL_RenderSetViewportFunction · 0.85
SDL_RenderSetClipRectFunction · 0.85
SDL_ceilfFunction · 0.85
GetScaledMouseDeltaFunction · 0.85
SDL_SendMouseWheelFunction · 0.85

Calls 2

ceilFunction · 0.85
SDL_floorFunction · 0.85

Tested by

no test coverage detected