/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 188 using roundingMode = llvm::RoundingMode; member 275 opStatus add(const IEEEFloat &, roundingMode); 278 opStatus divide(const IEEEFloat &, roundingMode); 284 opStatus roundToIntegral(roundingMode); 527 opStatus normalize(roundingMode, lostFraction); 529 opStatus handleOverflow(roundingMode); 535 roundingMode); 647 opStatus roundToIntegral(roundingMode RM); 1027 roundingMode RM) { in fusedMultiplyAdd() 1039 opStatus roundToIntegral(roundingMode RM) { in roundToIntegral() [all …]
|
/netbsd/regress/lib/libc/ieeefp/testfloat/ |
H A 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 …]
|
H A 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/lib/libc/softfloat/bits32/ |
H A D | softfloat.c | 211 int8 roundingMode; in roundAndPackFloat32() local 216 roundingMode = float_rounding_mode; in roundAndPackFloat32() 423 int8 roundingMode; in roundAndPackFloat64() local 426 roundingMode = float_rounding_mode; in roundAndPackFloat64() 595 int8 roundingMode; in float32_to_int32() local 625 roundingMode = float_rounding_mode; in float32_to_int32() 737 int8 roundingMode; in float32_round_to_int() local 770 roundingMode = float_rounding_mode; in float32_round_to_int() 1421 int8 roundingMode; in float64_to_int32() local 1449 roundingMode = float_rounding_mode; in float64_to_int32() [all …]
|
/netbsd/sys/lib/libkern/ |
H A D | softfloat.c | 107 int8 roundingMode; in roundAndPackInt32() local 157 int8 roundingMode; in roundAndPackInt64() local 199 int8 roundingMode; in roundAndPackUInt64() local 322 int8 roundingMode; in roundAndPackFloat32() local 483 int8 roundingMode; in roundAndPackFloat64() local 652 int8 roundingMode; in roundAndPackFloatx80() local 976 int8 roundingMode; in roundAndPackFloat128() local 1573 int8 roundingMode; in float32_round_to_int() local 2553 int8 roundingMode; in float64_round_to_int() local 3452 int8 roundingMode; in floatx80_round_to_int() local [all …]
|
/netbsd/lib/libc/softfloat/bits64/ |
H A D | softfloat.c | 124 int8 roundingMode; in roundAndPackInt32() local 129 roundingMode = float_rounding_mode; in roundAndPackInt32() 175 int8 roundingMode; in roundAndPackInt64() local 314 int8 roundingMode; in roundAndPackFloat32() local 484 int8 roundingMode; in roundAndPackFloat64() local 662 int8 roundingMode; in roundAndPackFloatx80() local 994 int8 roundingMode; in roundAndPackFloat128() local 1651 int8 roundingMode; in float32_round_to_int() local 2616 int8 roundingMode; in float64_round_to_int() local 3548 int8 roundingMode; in floatx80_round_to_int() local [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | APFloat.cpp | 1317 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero() 1790 roundingMode rounding_mode) { in add() 1820 roundingMode rounding_mode) { in divide() 2171 roundingMode rounding_mode, in convert() 2282 roundingMode rounding_mode, bool *isExact) const { in convertToSignExtendedInteger() 4289 roundingMode RM) { in addImpl() 4413 roundingMode RM) { in add() 4418 roundingMode RM) { in subtract() 4541 APFloat::roundingMode RM) { in fusedMultiplyAdd() 4772 APFloat::roundingMode RM) { in scalbn() [all …]
|
H A D | APFixedPoint.cpp | 460 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in convertToFloat() 461 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in convertToFloat() 508 APFloat::roundingMode RM = APFloat::rmTowardZero; in getFromFloatValue() 509 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in getFromFloatValue()
|
/netbsd/lib/libc/softfloat/ |
H A D | timesoftfloat.c | 1920 flag roundingPrecision, roundingMode; member 2055 int8 roundingMode, in timeFunctionVariety() argument 2078 switch ( roundingMode ) { in timeFunctionVariety() 2427 for ( roundingMode = 1; in timeFunction() 2429 ++roundingMode in timeFunction() 2432 roundingMode = 0; in timeFunction() 2435 roundingMode = roundingModeIn; in timeFunction() 2493 roundingMode = 0; in main() 2560 roundingMode = ROUND_TO_ZERO; in main() 2563 roundingMode = ROUND_DOWN; in main() [all …]
|
/netbsd/regress/lib/libc/ieeefp/testfloat/include/ |
H A D | testFunction.h | 153 flag roundingPrecision, roundingMode; member
|
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/ |
H A D | bigint.d | 946 private T toFloat(T, string roundingMode)() @safe nothrow @nogc const 947 if (__traits(isFloating, T) && (roundingMode == "nearest" || roundingMode == "truncate")) 950 enum performRounding = (roundingMode == "nearest"); 951 enum performTruncation = (roundingMode == "truncate");
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 1784 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt() 1966 Optional<APFloat::roundingMode> RM; in ConstantFoldScalarCall1()
|