CP_SetSqrtImm*

C Specification

#include <nitro/cp.h>

void CP_SetSqrtImm64( u64 param );
void CP_SetSqrtImm32( u32 param );

Arguments

param Value of the square root to be calculated.

Return Values

None.

Description

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

Internal Operation

Stores values in SQRT_PARAM(0x40002B8) of the IO register.

See Also

CP_SetSqrt*, CP_IsSqrtBusy, CP_WaitSqrt, CP_GetSqrtResult*

Revision History

01/09/2004 Added content
12/01/2003 Initial Version