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