# CP_SetSqrtImm

## C Specification

  `#include <nitro/cp.h>`
  `void CP_SetSqrtImm64( u64 param );`
  `void CP_SetSqrtImm32( u32 param );`

## Description

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

## Internal Operation

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

## Arguments

param | Value to use in the square root calculation

## Return Values

None

## See Also

`CP_SetSqrt*, CP_IsSqrtBusy, CP_WaitSqrt, CP_GetSqrtResult*`

## Revision History

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