DIV_LS4Q_INT

Four quadrant division of a 32-bit integer dividend and a 16-bit integer divisor, returning a 16-bit result.

Prototype

  Word16 __div_ls4q_int(Word16 s_denominator, Word32 

  l_numerator)

  

  
Example
int s1 = 0xE000; /* -8192 */

long s2 = 0x08000000; /* 134217728 */

int result;

result = div_ls4q_int (s1,s2);

// Expected value of result: 134217728 / -8192 = -16384 = 0xC000