Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 12 of 12) sorted by relevance

/netbsd/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFloat.h188 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 Dtestfloat.c90 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 DtestFunction.c605 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 Dsoftfloat.c211 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 Dsoftfloat.c107 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 Dsoftfloat.c124 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 DAPFloat.cpp1317 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 DAPFixedPoint.cpp460 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 Dtimesoftfloat.c1920 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 DtestFunction.h153 flag roundingPrecision, roundingMode; member
/netbsd/external/gpl3/gcc/dist/libphobos/src/std/
H A Dbigint.d946 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 DConstantFolding.cpp1784 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt()
1966 Optional<APFloat::roundingMode> RM; in ConstantFoldScalarCall1()