| 91 | } |
| 92 | |
| 93 | void fx_isFinite(txMachine* the) |
| 94 | { |
| 95 | int fpclass; |
| 96 | txNumber number = (mxArgc < 1) ? C_NAN : fxToNumber(the, mxArgv(0)); |
| 97 | mxResult->kind = XS_BOOLEAN_KIND; |
| 98 | mxResult->value.boolean = 0; |
| 99 | fpclass = c_fpclassify(number); |
| 100 | if ((fpclass != C_FP_NAN) && (fpclass != C_FP_INFINITE)) |
| 101 | mxResult->value.boolean = 1; |
| 102 | } |
| 103 | |
| 104 | void fx_isNaN(txMachine* the) |
| 105 | { |
nothing calls this directly
no test coverage detected