Index: firmware/App/HDCommon.h =================================================================== diff -u -r52845cc5c122e7f1ecdace61d4080f6d61bb90e7 -r891cb02e17aa6c3a5457c2bcce277180ab21d9d0 --- firmware/App/HDCommon.h (.../HDCommon.h) (revision 52845cc5c122e7f1ecdace61d4080f6d61bb90e7) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 891cb02e17aa6c3a5457c2bcce277180ab21d9d0) @@ -123,7 +123,27 @@ #ifdef _VECTORCAST_ +S32 pow( S32 num, U32 exp ) +{ + S32 result = num; + if ( 0 == exp ) + { + result = 1; + } + else if ( exp > 1 ) + { + U32 i; + + for ( i = 1; i < exp; i++ ) + { + result *= num; + } + } + + return result; +} + #endif #endif