#include <nitro/cp.h>
void CP_SetSqrtImm64( u64 param );
void CP_SetSqrtImm32( u32 param );
param | Value of the square root to be calculated. |
None.
Sets the parameters for square root calculations. It does not set the square root calculation mode but merely stores the parameter. There are two calculation modes, as follows:
Division Mode | Calculation |
CP_SQRT_32BIT_MODE | Square root calculation of 32-bit value |
CP_SQRT_64BIT_MODE | Square root calculation of 64-bit value |
Stores values in
SQRT_PARAM(0x40002B8)
of the IO register.
CP_SetSqrt*, CP_IsSqrtBusy, CP_WaitSqrt, CP_GetSqrtResult*
01/09/2004 Added content
12/01/2003 Initial Version