Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
math:start [2022/07/16 16:20] rajit created |
math:start [2022/07/30 11:40] rajit [Functions] |
||
---|---|---|---|
Line 2: | Line 2: | ||
This namespace is used to provide support functions for math operations. | This namespace is used to provide support functions for math operations. | ||
+ | |||
+ | ===== Functions ===== | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | |||
+ | This function takes an integer '' | ||
+ | |||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | |||
+ | This function takes an integer '' | ||
+ | |||
+ | |||
+ | |||
===== Namespace math::fxp ===== | ===== Namespace math::fxp ===== | ||
+ | |||
+ | ==== Functions ==== | ||
The '' | The '' | ||
Line 17: | Line 37: | ||
</ | </ | ||
This returns the difference of two Q(A,B) numbers '' | This returns the difference of two Q(A,B) numbers '' | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | This returns the unsigned product of two Q(A,B) numbers '' | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | This returns the unsigned division result '' | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | This returns the signed product of two Q(A,B) numbers '' | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | This returns the signed division result '' | ||
+ | |||
+ | <code act> | ||
+ | template< | ||
+ | </ | ||
+ | This returns the negated value of a signed Q(A,B) number '' | ||
+ | |||
+ | |||