/* Square root operation. 
Run the square root operation and return the results. */
uint32_t divas_sqrt(uint32_t radicand)
/* Square root operation. 
Run the square root operation and return the results. */
uint32_t divas_sqrt(uint32_t radicand)
{
	cpu_irq_enter_critical();
	DIVAS->SQRNUM.reg = radicand;
	while(DIVAS->STATUS.bit.BUSY){
	}
	uint32_t result_sqrt = DIVAS->RESULT.reg;
	cpu_irq_leave_critical();
	return result_sqrt;
}