helper function to check transform overflow todo: check overflow by checking against sign
| 2764 | // helper function to check transform overflow |
| 2765 | // todo: check overflow by checking against sign |
| 2766 | CGU_BOOL isOverflow(CGU_INT endpoint, CGU_INT nbit) |
| 2767 | { |
| 2768 | CGU_INT maxRange = (int)pow(2.0f, (CGU_FLOAT)nbit - 1.0f) - 1; |
| 2769 | CGU_INT minRange = (int)-(pow(2.0f, (CGU_FLOAT)nbit - 1.0f)); |
| 2770 | |
| 2771 | //no overflow |
| 2772 | if ((endpoint >= minRange) && (endpoint <= maxRange)) |
| 2773 | return false; |
| 2774 | else //overflow |
| 2775 | return true; |
| 2776 | } |
| 2777 | |
| 2778 | CGU_BOOL TransformEndPoints(BC6H_Encode_local* BC6H_data, |
| 2779 | CGU_INT iEndPoints[MAX_SUBSETS][MAX_END_POINTS][MAX_DIMENSION_BIG], |
no outgoing calls
no test coverage detected