MSU_R_INT

Multiply two 16-bit integer values and substract this product from a 32-bit integer value. Round into a 16-bit result.

Prototype

  Word16 __msu_r_int(Word32 laccum, Word16 sinp1, Word16 sinp2)

  

  
Example
long s1 = 0x20000000;/* 536870912 */

int s2 = 0x2000;/* 8192 */

int s3 = 0x2000;/* 8192 */

int result;

result = msu_r_int (s1, s2, s3);

// Expected value of result : round(536870912 - 8192 * 8192) = round (469762048) = 7168 = 0x1c00