MULT_INT

Multiply two 16-bit integer values and truncate into a 16-bit integer result.

Prototype

  Word16 __mult_int(Word16 sinp1, Word16 sinp2)

  
Example
int s1 = 0x2000;/* 8192 */

int s2 = 0x2000;/* 8192 */

int result;

result = mult_int (s1, s2);

// Expected value of result : 8192 * 8192 = high (67108864) = 1024 = 0x0400