Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
math:start [2022/07/16 16:20]
rajit created
math:start [2022/07/16 16:22]
rajit [Namespace math::fxp]
Line 17: Line 17:
 </code> </code>
 This returns the difference of two Q(A,B) numbers ''x'' and ''y''. This returns the difference of two Q(A,B) numbers ''x'' and ''y''.
 +
 +<code act>
 +template<pint A,B> function multu (int<A+B> x, y) : int<A+B>;
 +</code>
 +This returns the unsigned product of two Q(A,B) numbers ''x'' and ''y''.
 +
 +<code act>
 +template<pint A,B> function divu (int<A+B> x, y) : int<A+B>;
 +</code>
 +This returns the unsigned division result ''x/y'' of two Q(A,B) numbers ''x'' and ''y''.
 +
 +<code act>
 +template<pint A,B> function mults (int<A+B> x, y) : int<A+B>;
 +</code>
 +This returns the signed product of two Q(A,B) numbers ''x'' and ''y''.
 +
 +<code act>
 +template<pint A,B> function divs (int<A+B> x, y) : int<A+B>;
 +</code>
 +This returns the signed division result ''x/y'' of two Q(A,B) numbers ''x'' and ''y''.
 +
 +<code act>
 +template<pint A,B> function uminus (int<A+B> x) : int<A+B>;
 +</code>
 +This returns the negated value of a signed Q(A,B) number ''x''.
 +
 +