systmodes.c revision 272461
1 2/* 3=============================================================================== 4 5This C source file is part of TestFloat, Release 2a, a package of programs 6for testing the correctness of floating-point arithmetic complying to the 7IEC/IEEE Standard for Floating-Point. 8 9Written by John R. Hauser. More information is available through the Web 10page `http://HTTP.CS.Berkeley.EDU/~jhauser/arithmetic/TestFloat.html'. 11 12THIS SOFTWARE IS DISTRIBUTED AS IS, FOR FREE. Although reasonable effort 13has been made to avoid it, THIS SOFTWARE MAY CONTAIN FAULTS THAT WILL AT 14TIMES RESULT IN INCORRECT BEHAVIOR. USE OF THIS SOFTWARE IS RESTRICTED TO 15PERSONS AND ORGANIZATIONS WHO CAN AND WILL TAKE FULL RESPONSIBILITY FOR ANY 16AND ALL LOSSES, COSTS, OR OTHER PROBLEMS ARISING FROM ITS USE. 17 18Derivative works are acceptable, even for commercial purposes, so long as 19(1) they include prominent notice that the work is derivative, and (2) they 20include prominent notice akin to these four paragraphs for those parts of 21this code that are retained. 22 23=============================================================================== 24*/ 25 26#include <sys/cdefs.h> 27__FBSDID("$FreeBSD: releng/10.1/tools/test/testfloat/sparc64/systmodes.c 207151 2010-04-24 12:11:41Z marius $"); 28 29#include <ieeefp.h> 30#include "milieu.h" 31#include "systmodes.h" 32 33/* 34------------------------------------------------------------------------------- 35Sets the system's IEC/IEEE floating-point rounding mode. 36------------------------------------------------------------------------------- 37*/ 38void syst_float_set_rounding_mode( int8 roundingMode ) 39{ 40 41 (void) fpsetround( roundingMode ); 42 43} 44 45/* 46------------------------------------------------------------------------------- 47Does nothing. 48------------------------------------------------------------------------------- 49*/ 50void syst_float_set_rounding_precision( int8 precision ) 51{ 52 53} 54 55