* Return true if `op' is suitable as a floating point binary operator */
| 632 | * Return true if `op' is suitable as a floating point binary operator |
| 633 | */ |
| 634 | bool |
| 635 | FunctionInvocation::BinaryOpWorksForFloat(eBinaryOps op) |
| 636 | { |
| 637 | switch (op) { |
| 638 | case eAdd: |
| 639 | case eSub: |
| 640 | case eMul: |
| 641 | case eDiv: |
| 642 | case eCmpGt: |
| 643 | case eCmpLt: |
| 644 | case eCmpGe: |
| 645 | case eCmpLe: |
| 646 | case eCmpEq: |
| 647 | case eCmpNe: // fall-through |
| 648 | return true; |
| 649 | default: |
| 650 | return false; |
| 651 | } |
| 652 | } |
| 653 | |
| 654 | bool |
| 655 | FunctionInvocation::UnaryOpWorksForFloat(eUnaryOps op) |
nothing calls this directly
no outgoing calls
no test coverage detected