(Float F, int kind)
| 745 | } |
| 746 | |
| 747 | static float floatUnaryOperation(Float F, int kind) |
| 748 | { |
| 749 | float operand = F.floatValue(); |
| 750 | |
| 751 | switch(kind) |
| 752 | { |
| 753 | case PLUS: |
| 754 | return operand; |
| 755 | case MINUS: |
| 756 | return -operand; |
| 757 | case INCR: |
| 758 | return operand + 1; |
| 759 | case DECR: |
| 760 | return operand - 1; |
| 761 | default: |
| 762 | throw new InterpreterError("bad float unaryOperation"); |
| 763 | } |
| 764 | } |
| 765 | |
| 766 | static double doubleUnaryOperation(Double D, int kind) |
| 767 | { |
no outgoing calls
no test coverage detected