CP_GetSqrtResult*


C Specification

	#include <nitro/cp.h>

	u32 CP_GetSqrtResult32( void )
	u16 CP_GetSqrtResult16( void )
	u8 CP_GetSqrtResult8( void )
	u32 CP_GetSqrtResultImm32( void )
	u16 CP_GetSqrtResultImm16( void )
	u8 CP_GetSqrtResultImm8( void )

Description

Returns results of square root calculation. Results can be acquired in 8 bit, 16 bit, or 32 bit. It can be acquired in a fewer bit than what was acquired in, but the value may not be accurate. (For example, if acquired in the value of u8 when the result is 0x100, it will be 0x0.)

A function to wait from busy state to ready state and a function which does not wait as being ready state are provided separately.

Function

Return Value Type

Wait State

CP_GetSqrtResult32

u32

Wait

CP_GetSqrtResult16

u16

Wait

CP_GetSqrtResult8

u8

Wait

CP_GetSqrtResultImm32

u32

No Wait

CP_GetSqrtResultImm16

u16

No Wait

CP_GetSqrtResultImm8

u8

No Wait

Internal Operation

Reference a value of SQRT_RESULT (0x40002B4) of the IO register. Reference SQRTCNT (0x40002B0) to check the ready status.

Arguments

None.

Return Values

Result acquired by square root calculation.

See Also

CP_SetSqrtImm*, CP_SetSqrt*, CP_IsSqrtBusy, CP_WaitSqrt

Revision History

11/02/2004 Deleted the 64 bit result in the Description.
01/09/2004 Added content.
12/01/2003 Initial version.