L_MAC_INT

Multiply two 16-bit integer values and add to 32-bit integer value, generating a 32-bit result.

Prototype

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

  

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

int s2 = 0x2000;/* 8192 */

int s3 = 0x2000;/* 8192 */

long result;

result = L_mac_int (s1, s2, s3);

// Expected value of result: 8192 * 8192 + 536870912 = 603979776 = 0x24000000