Single quadrant division (i.e. both operands positive) of two 16-bit integer values, returning a 16-bit result. If both operands are equal, returns $7FFF (occurs naturally).
Word16 __div_s_int(Word16 s_denominator, Word16 s_numerator)
int s1 = 0x2000; /* 8192 */ int s2 = 0x0800; /* 2048 */ int result; result = div_s_int (s1,s2); // Expected value of result: 8192 / 2048 = 4 = 0x0004