| 195 | } |
| 196 | |
| 197 | void fx_Math_ceil(txMachine* the) |
| 198 | { |
| 199 | mxNanResultIfNoArg; |
| 200 | if (XS_INTEGER_KIND == mxArgv(0)->kind) { |
| 201 | mxResult->kind = XS_INTEGER_KIND; |
| 202 | mxResult->value.integer = mxArgv(0)->value.integer; |
| 203 | return; |
| 204 | } |
| 205 | fxToNumber(the, mxArgv(0)); |
| 206 | mxResult->kind = XS_NUMBER_KIND; |
| 207 | mxResult->value.number = c_ceil(mxArgv(0)->value.number); |
| 208 | fx_Math_toInteger(the); |
| 209 | } |
| 210 | |
| 211 | void fx_Math_clz32(txMachine* the) |
| 212 | { |
nothing calls this directly
no test coverage detected