SVC_Sqrt

C Specification

#include <nitro/os/common/systemCall.h>
u16 SVC_Sqrt( u32 src );

Arguments

src Value of the square root to be calculated.

Return Values

This is the result of the square root calculation.

Description

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. Because the code size is compressed, it is not high speed.

See Also

CP_SetSqrt()

Revision History

07/20/2004 Initial Version