| 128 | } |
| 129 | |
| 130 | double |
| 131 | SDL_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 | |
| 145 | float |
| 146 | SDL_ceilf(float x) |
no test coverage detected