Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h248 using roundingMode = llvm::RoundingMode; member
250 static constexpr roundingMode rmNearestTiesToEven =
252 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
253 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
254 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
255 static constexpr roundingMode rmNearestTiesToAway =
341 opStatus add(const IEEEFloat &, roundingMode);
342 opStatus subtract(const IEEEFloat &, roundingMode);
343 opStatus multiply(const IEEEFloat &, roundingMode);
344 opStatus divide(const IEEEFloat &, roundingMode);
[all …]
/freebsd/lib/libc/softfloat/bits32/
H A Dsoftfloat.c200 int8 roundingMode; in roundAndPackFloat32() local
205 roundingMode = float_rounding_mode; in roundAndPackFloat32()
206 roundNearestEven = roundingMode == float_round_nearest_even; in roundAndPackFloat32()
209 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat32()
215 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat32()
218 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat32()
412 int8 roundingMode; in roundAndPackFloat64() local
415 roundingMode = float_rounding_mode; in roundAndPackFloat64()
416 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackFloat64()
419 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat64()
[all …]
/freebsd/lib/libc/softfloat/bits64/
H A Dsoftfloat.c113 int8 roundingMode; in roundAndPackInt32() local
118 roundingMode = float_rounding_mode; in roundAndPackInt32()
119 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt32()
122 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt32()
128 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32()
131 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32()
164 int8 roundingMode; in roundAndPackInt64() local
168 roundingMode = float_rounding_mode; in roundAndPackInt64()
169 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt64()
172 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt64()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp1535 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow()
1567 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1605 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize()
2039 roundingMode rounding_mode, in addOrSubtract()
2072 roundingMode rounding_mode) { in add()
2078 roundingMode rounding_mode) { in subtract()
2084 roundingMode rounding_mode) { in multiply()
2104 roundingMode rounding_mode) { in divide()
2262 roundingMode rounding_mode) { in fusedMultiplyAdd()
2306 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
[all …]
H A DAPFixedPoint.cpp497 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in convertToFloat()
498 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in convertToFloat()
545 APFloat::roundingMode RM = APFloat::rmTowardZero; in getFromFloatValue()
546 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in getFromFloatValue()
/freebsd/lib/libc/softfloat/
H A Dtimesoftfloat.c1915 flag roundingPrecision, roundingMode; member
2050 int8 roundingMode, in timeFunctionVariety() argument
2073 switch ( roundingMode ) { in timeFunctionVariety()
2412 int8 roundingPrecision, roundingMode, tininessMode; in timeFunction() local
2422 for ( roundingMode = 1; in timeFunction()
2423 roundingMode < NUM_ROUNDINGMODES; in timeFunction()
2424 ++roundingMode in timeFunction()
2426 if ( ! functions[ functionCode ].roundingMode ) { in timeFunction()
2427 roundingMode = 0; in timeFunction()
2430 roundingMode = roundingModeIn; in timeFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp1889 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt()
2189 std::optional<APFloat::roundingMode> RM; in ConstantFoldScalarCall1()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1286 APFloat::roundingMode RM)) { in F_Op()