Multiply two 16-bit integer values and add to 32-bit integer value. Round into a 16-bit result.
Word16 __mac_r_int(Word32 laccum, Word16 sinp1, Word16 sinp2)
long s1 = 0x20000000;/* 536870912 */ int s2 = 0x2000;/* 8192 */ int s3 = 0x2000;/* 8192 */ int result; result = mac_r_int (s1, s2, s3); // Expected value of result : round(8192 * 8192 + 536870912) = round (603979776) = 9216 = 0x2400