Index: Utilities.c =================================================================== diff -u -r15a8d5ff98b2d88bd0f32a37b41f4eec0f7a7088 -r34e9d24b76d786a5d3bba641f06e7764439c161e --- Utilities.c (.../Utilities.c) (revision 15a8d5ff98b2d88bd0f32a37b41f4eec0f7a7088) +++ Utilities.c (.../Utilities.c) (revision 34e9d24b76d786a5d3bba641f06e7764439c161e) @@ -268,33 +268,6 @@ return ( nRem ^ 0x00 ); } -S16 signExtend16( U16 value, U32 signBit ) -{ - U16 signBitMask = 1; - U16 extend = 1; - S32 i; - - for ( i = 1; i < 15U - signBit; i++ ) - { - extend <<= 1; - extend |= 1; - } - extend <<= signBit; - - for ( i = 0; i < signBit; i++ ) - { - signBitMask <<= 1; - } - - // if given value is negative, sign extend value - if ( ( value & signBitMask ) != 0 ) - { - value |= extend; - } - - return (S16)value; -} - /*********************************************************************//** * @brief * The u32DiffWithWrap function calculates the difference between two given