| 759 | } |
| 760 | |
| 761 | int GetNumericTypePrecedence( int type ) |
| 762 | { |
| 763 | static const int typePrecedence[] = { OP_BOOL, OP_INT, OP_UINT, OP_HALF, OP_FLOAT, OP_DOUBLE }; |
| 764 | for( int i = 0; i < int( sizeof( typePrecedence ) / sizeof( int ) ); ++i ) |
| 765 | { |
| 766 | if( type == typePrecedence[i] ) |
| 767 | { |
| 768 | return i; |
| 769 | } |
| 770 | } |
| 771 | return -1; |
| 772 | } |
| 773 | |
| 774 | |
| 775 |
no outgoing calls
no test coverage detected