#include <nitro/cp.h> s32 CP_IsSqrtBusy( void )
Checks whether square root calculator is busy or not. After writing in a square root calculation register, it will be in a busy state for a fixed cycle period. When acquiring results of square root calculation, you need to read when it is no longer busy.
Calculation cycles are as follows (The calculation cycle is a cycle number based on 33.514 MHz. The CPU cycle conversion is a cycle number based on 67.028 MHz.):
Division Mode |
Calculation |
Calculation Cycle |
CPU Cycle Conversion |
|
Square root calculation of 32-bit value |
13 cycles |
26 cycles |
|
Square root calculation of 64-bit value |
13 cycles |
26 cycles |
Reference SQRTCNT(0x40002B0) of the IO register.
None.
Determines whether square root calculator is busy. 0 means ready state and non-0 means busy state.
CP_SetSqrtImm*, CP_SetSqrt*,
CP_WaitSqrt, CP_GetSqrtResult*
11/02/2004 Corrected the error in cycle numbers. Changed the function type in the C Specification from int to s32.
06/16/2004 Added description of cycle
number.
01/09/2004 Added content.
12/01/2003 Initial version.