| 487 | } |
| 488 | |
| 489 | SIValue SIValue_Subtract(const SIValue a, const SIValue b) { |
| 490 | /* Only construct an integer return if both operands are integers. */ |
| 491 | if(a.type & b.type & T_INT64) { |
| 492 | return SI_LongVal(a.longval - b.longval); |
| 493 | } |
| 494 | /* Return a double representation. */ |
| 495 | return SI_DoubleVal(SI_GET_NUMERIC(a) - SI_GET_NUMERIC(b)); |
| 496 | } |
| 497 | |
| 498 | SIValue SIValue_Multiply(const SIValue a, const SIValue b) { |
| 499 | /* Only construct an integer return if both operands are integers. */ |
no test coverage detected