L_MULT_LS_INT

Multiply one 32-bit and one 16-bit integer value, generating a signed 32-bit integer result.

Prototype

  Word32 __L_mult_ls_int(Word32 linp1, Word16 sinp2)

  

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

int s2 = 0x2000;/* 8192 */

long result;

result = L_mult_ls_int (s1, s2);

// Expected value of result : high(8192 * 536870912) = high(4398046511104) = 67108864 = 0x04000000