Index: firmware/App/HDCommon.h =================================================================== diff -u -rc3e453e87f4a5df3a1509768f712556614e068f1 -r2e6fa609bde16c6e335cbea127ecfa7a6afad6c9 --- firmware/App/HDCommon.h (.../HDCommon.h) (revision c3e453e87f4a5df3a1509768f712556614e068f1) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 2e6fa609bde16c6e335cbea127ecfa7a6afad6c9) @@ -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