FreeBSD/tools/test/testfloat/sparc64/fpu_util.c
/*
-------------------------------------------------------------------------------
Sets the system's IEC/IEEE floating-point rounding mode.
-------------------------------------------------------------------------------
*/
Sets the system's IEC/IEEE floating-point rounding mode.
Sets the system ' s IEC / IEEE floating - point rounding mode .
void syst_float_set_rounding_mode(int8 roundingMode)
{
	utf.uf_fsr &= ~FSR_RD_MASK;
	utf.uf_fsr |= FSR_RD((unsigned int)roundingMode & 0x03);
}
void syst_float_set_rounding_mode ( int8 roundingMode ) { utf . uf_fsr &= ~ FSR_RD_MASK ; utf . uf_fsr |= FSR_RD ( ( unsigned int ) roundingMode & 0x03 ) ; }
Sets the system's IEC/IEEE floating-point rounding mode.
Sets the system ' s IEC / IEEE floating - point rounding mode .