#include <nitro/os/common/systemCall.h>
u16 SVC_Sqrt( u32 src );
This function calculates the square root.
To improve the precision of the calculation, shift the argument to the left by a multiple of 2 before passing it over. Shift the return value as well to align the digits.
This function is not a high speed function because the code size is restricted.
src |
Value of the square root to be calculated. |
This is the result of the square root calculation.
07/20/2004 Initial Version