Searched refs:roundingMode (Results 1 – 7 of 7) sorted by relevance
| /netbsd/src/regress/lib/libc/ieeefp/testfloat/ |
| D | testfloat.c | 90 int8 operands, roundingPrecision, roundingMode; in main() local 107 roundingMode = 0; in main() 226 roundingMode = ROUND_NEAREST_EVEN; in main() 230 roundingMode = ROUND_TO_ZERO; in main() 233 roundingMode = ROUND_DOWN; in main() 236 roundingMode = ROUND_UP; in main() 288 if ( ! roundingMode ) roundingMode = ROUND_NEAREST_EVEN; in main() 290 testFunction( functionCode, roundingPrecision, roundingMode ); in main() 304 functionCode, roundingPrecision, roundingMode ); in main() 316 functionCode, roundingPrecision, roundingMode ); in main() [all …]
|
| D | testFunction.c | 605 uint8 functionCode, int8 roundingPrecision, int8 roundingMode ) in testFunctionVariety() argument 627 switch ( roundingMode ) { in testFunctionVariety() 1146 int8 roundingPrecision, roundingMode; in testFunction() local 1156 for ( roundingMode = 1; in testFunction() 1157 roundingMode < NUM_ROUNDINGMODES; in testFunction() 1158 ++roundingMode in testFunction() 1160 if ( ! functions[ functionCode ].roundingMode ) { in testFunction() 1161 roundingMode = 0; in testFunction() 1164 roundingMode = roundingModeIn; in testFunction() 1167 functionCode, roundingPrecision, roundingMode ); in testFunction() [all …]
|
| /netbsd/src/lib/libc/softfloat/bits32/ |
| D | softfloat.c | 211 int8 roundingMode; in roundAndPackFloat32() local 216 roundingMode = float_rounding_mode; in roundAndPackFloat32() 217 roundNearestEven = roundingMode == float_round_nearest_even; in roundAndPackFloat32() 220 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat32() 226 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat32() 229 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat32() 423 int8 roundingMode; in roundAndPackFloat64() local 426 roundingMode = float_rounding_mode; in roundAndPackFloat64() 427 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackFloat64() 430 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat64() [all …]
|
| /netbsd/src/sys/lib/libkern/ |
| D | softfloat.c | 107 int8 roundingMode; in roundAndPackInt32() local 112 roundingMode = float_rounding_mode(); in roundAndPackInt32() 113 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt32() 116 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt32() 122 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32() 125 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32() 157 int8 roundingMode; in roundAndPackInt64() local 161 roundingMode = float_rounding_mode(); in roundAndPackInt64() 162 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt64() 165 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt64() [all …]
|
| /netbsd/src/lib/libc/softfloat/bits64/ |
| D | softfloat.c | 124 int8 roundingMode; in roundAndPackInt32() local 129 roundingMode = float_rounding_mode; in roundAndPackInt32() 130 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt32() 133 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt32() 139 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32() 142 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32() 175 int8 roundingMode; in roundAndPackInt64() local 179 roundingMode = float_rounding_mode; in roundAndPackInt64() 180 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt64() 183 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt64() [all …]
|
| /netbsd/src/lib/libc/softfloat/ |
| D | timesoftfloat.c | 1920 flag roundingPrecision, roundingMode; member 2055 int8 roundingMode, in timeFunctionVariety() argument 2078 switch ( roundingMode ) { in timeFunctionVariety() 2417 int8 roundingPrecision, roundingMode, tininessMode; in timeFunction() local 2427 for ( roundingMode = 1; in timeFunction() 2428 roundingMode < NUM_ROUNDINGMODES; in timeFunction() 2429 ++roundingMode in timeFunction() 2431 if ( ! functions[ functionCode ].roundingMode ) { in timeFunction() 2432 roundingMode = 0; in timeFunction() 2435 roundingMode = roundingModeIn; in timeFunction() [all …]
|
| /netbsd/src/regress/lib/libc/ieeefp/testfloat/include/ |
| D | testFunction.h | 153 flag roundingPrecision, roundingMode; member
|