Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DAPFloat.h174 enum roundingMode { enum
254 opStatus add(const IEEEFloat &, roundingMode);
257 opStatus divide(const IEEEFloat &, roundingMode);
263 opStatus roundToIntegral(roundingMode);
504 opStatus normalize(roundingMode, lostFraction);
506 opStatus handleOverflow(roundingMode);
512 roundingMode);
619 opStatus roundToIntegral(roundingMode RM);
996 roundingMode RM) { in fusedMultiplyAdd()
1008 opStatus roundToIntegral(roundingMode RM) { in roundToIntegral()
[all …]
/freebsd-12.1/tools/test/testfloat/
H A Dtestfloat.c54 int8 operands, roundingPrecision, roundingMode; in main() local
71 roundingMode = 0; in main()
190 roundingMode = ROUND_NEAREST_EVEN; in main()
194 roundingMode = ROUND_TO_ZERO; in main()
197 roundingMode = ROUND_DOWN; in main()
200 roundingMode = ROUND_UP; in main()
252 if ( ! roundingMode ) roundingMode = ROUND_NEAREST_EVEN; in main()
254 testFunction( functionCode, roundingPrecision, roundingMode ); in main()
268 functionCode, roundingPrecision, roundingMode ); in main()
280 functionCode, roundingPrecision, roundingMode ); in main()
[all …]
H A Dtestsoftfloat.c185 flag roundingPrecision, roundingMode; member
330 int8 roundingMode, in testFunctionVariety() argument
354 switch ( roundingMode ) { in testFunctionVariety()
759 for ( roundingMode = 1; in testFunction()
761 ++roundingMode in testFunction()
764 roundingMode = 0; in testFunction()
835 roundingMode = 0; in main()
948 roundingMode = ROUND_UP; in main()
994 if ( ! roundingMode ) roundingMode = ROUND_NEAREST_EVEN; in main()
1009 roundingMode, in main()
[all …]
H A DtestFunction.c573 uint8 functionCode, int8 roundingPrecision, int8 roundingMode ) in testFunctionVariety() argument
595 switch ( roundingMode ) { in testFunctionVariety()
1112 int8 roundingPrecision, roundingMode; in testFunction() local
1122 for ( roundingMode = 1; in testFunction()
1123 roundingMode < NUM_ROUNDINGMODES; in testFunction()
1124 ++roundingMode in testFunction()
1126 if ( ! functions[ functionCode ].roundingMode ) { in testFunction()
1127 roundingMode = 0; in testFunction()
1130 roundingMode = roundingModeIn; in testFunction()
1133 functionCode, roundingPrecision, roundingMode ); in testFunction()
[all …]
H A DtestFunction.h121 flag roundingPrecision, roundingMode; member
/freebsd-12.1/lib/libc/softfloat/bits32/
H A Dsoftfloat.c203 int8 roundingMode; in roundAndPackFloat32() local
208 roundingMode = float_rounding_mode; in roundAndPackFloat32()
415 int8 roundingMode; in roundAndPackFloat64() local
418 roundingMode = float_rounding_mode; in roundAndPackFloat64()
587 int8 roundingMode; in float32_to_int32() local
617 roundingMode = float_rounding_mode; in float32_to_int32()
729 int8 roundingMode; in float32_round_to_int() local
762 roundingMode = float_rounding_mode; in float32_round_to_int()
1413 int8 roundingMode; in float64_to_int32() local
1441 roundingMode = float_rounding_mode; in float64_to_int32()
[all …]
/freebsd-12.1/lib/libc/softfloat/bits64/
H A Dsoftfloat.c116 int8 roundingMode; in roundAndPackInt32() local
121 roundingMode = float_rounding_mode; in roundAndPackInt32()
167 int8 roundingMode; in roundAndPackInt64() local
306 int8 roundingMode; in roundAndPackFloat32() local
476 int8 roundingMode; in roundAndPackFloat64() local
654 int8 roundingMode; in roundAndPackFloatx80() local
986 int8 roundingMode; in roundAndPackFloat128() local
1647 int8 roundingMode; in float32_round_to_int() local
2612 int8 roundingMode; in float64_round_to_int() local
3544 int8 roundingMode; in floatx80_round_to_int() local
[all …]
/freebsd-12.1/tools/test/testfloat/sparc64/
H A Dsystmodes.c38 void syst_float_set_rounding_mode( int8 roundingMode ) in syst_float_set_rounding_mode() argument
41 (void) fpsetround( roundingMode ); in syst_float_set_rounding_mode()
H A Dfpu_util.c691 void syst_float_set_rounding_mode(int8 roundingMode) in syst_float_set_rounding_mode() argument
695 utf.uf_fsr |= FSR_RD((unsigned int)roundingMode & 0x03); in syst_float_set_rounding_mode()
/freebsd-12.1/contrib/llvm/lib/Support/
H A DAPFloat.cpp1236 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1660 roundingMode rounding_mode) { in add()
1690 roundingMode rounding_mode) { in divide()
1929 roundingMode rounding_mode, in convert()
2036 roundingMode rounding_mode, bool *isExact) const { in convertToSignExtendedInteger()
3913 roundingMode RM) { in addImpl()
3993 roundingMode RM) { in addWithSpecial()
4037 roundingMode RM) { in add()
4042 roundingMode RM) { in subtract()
4165 APFloat::roundingMode RM) { in fusedMultiplyAdd()
[all …]
/freebsd-12.1/lib/libc/softfloat/
H A Dtimesoftfloat.c1918 flag roundingPrecision, roundingMode; member
2053 int8 roundingMode, in timeFunctionVariety() argument
2076 switch ( roundingMode ) { in timeFunctionVariety()
2425 for ( roundingMode = 1; in timeFunction()
2427 ++roundingMode in timeFunction()
2430 roundingMode = 0; in timeFunction()
2433 roundingMode = roundingModeIn; in timeFunction()
2491 roundingMode = 0; in main()
2558 roundingMode = ROUND_TO_ZERO; in main()
2561 roundingMode = ROUND_DOWN; in main()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp274 enum APFloat::roundingMode RndMode = APFloat::rmNearestTiesToEven; in operator +=()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp1593 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt()