

#include <nitro/cp.h>s32 CP_IsSqrtBusy( void )None.
Determines whether square root calculator is busy. 0 means ready state and non-0 means busy state.
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. The calculation cycle is 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.)
| Square Root Calculation Mode | Calculation | Calculation Cycles | CPU Cycle Conversion |
|---|---|---|---|
| CP_SQRT_32BIT_MODE | Square root calculation of 32-bit values | 13 cycles | 26 cycles |
| CP_SQRT_64BIT_MODE | Square root calculation of 64-bit values | 13 cycles | 26 cycles |
Reference SQRTCNT(0x40002B0) of the IO register.
CP_SetSqrtImm*, CP_SetSqrt*, CP_WaitSqrt, CP_GetSqrtResult*
2004/11/02 Corrected the error in cycle numbers. Changed the function type in the C Specification from int to s32.
2004/06/16 Added description of cycle number.
2004/01/09 Added contents.
2003/12/01 Initial version.
CONFIDENTIAL