| 505 | } |
| 506 | |
| 507 | SIValue SIValue_Divide(const SIValue a, const SIValue b) { |
| 508 | if(SI_TYPE(a) & SI_TYPE(b) & T_INT64) { |
| 509 | return SI_LongVal(SI_GET_NUMERIC(a) / SI_GET_NUMERIC(b)); |
| 510 | } |
| 511 | return SI_DoubleVal(SI_GET_NUMERIC(a) / (double)SI_GET_NUMERIC(b)); |
| 512 | } |
| 513 | |
| 514 | // Calculate a mod n for integer and floating-point inputs. |
| 515 | SIValue SIValue_Modulo(const SIValue a, const SIValue n) { |
no test coverage detected