Microsoft , / (_Q15add _Q15sub).
( , - ).
C:
extern _Q15 Q15mpy(_Q15 a, _Q15 b);
( .s ):
.global _Q15mpy
_Q15mpy:
mul.ss w0, w1, w2 ; signed multiple parameters, result in w2:w3
SL w2, w2 ; place most significant bit of W2 in carry
RLC w3, w0 ; rotate left carry into w3; result in W0
return ; return value in W0
.end
libq.h
, 15 . , Q15 & lt; = 1.