Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAPFloat.h198 using roundingMode = llvm::RoundingMode; member
200 static constexpr roundingMode rmNearestTiesToEven =
202 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
203 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
204 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
205 static constexpr roundingMode rmNearestTiesToAway =
285 opStatus add(const IEEEFloat &, roundingMode);
286 opStatus subtract(const IEEEFloat &, roundingMode);
287 opStatus multiply(const IEEEFloat &, roundingMode);
288 opStatus divide(const IEEEFloat &, roundingMode);
[all …]
/openbsd-src/lib/libc/softfloat/
H A Dsoftfloat.c201 int8 roundingMode; in roundAndPackFloat32() local
206 roundingMode = float_rounding_mode; in roundAndPackFloat32()
207 roundNearestEven = roundingMode == float_round_nearest_even; in roundAndPackFloat32()
210 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat32()
216 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat32()
219 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat32()
413 int8 roundingMode; in roundAndPackFloat64() local
416 roundingMode = float_rounding_mode; in roundAndPackFloat64()
417 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackFloat64()
420 if ( roundingMode == float_round_to_zero ) { in roundAndPackFloat64()
[all …]
H A Dtimesoftfloat.c1916 flag roundingPrecision, roundingMode; member
2051 int8 roundingMode, in timeFunctionVariety() argument
2074 switch ( roundingMode ) { in timeFunctionVariety()
2413 int8 roundingPrecision, roundingMode, tininessMode; in timeFunction() local
2423 for ( roundingMode = 1; in timeFunction()
2424 roundingMode < NUM_ROUNDINGMODES; in timeFunction()
2425 ++roundingMode in timeFunction()
2427 if ( ! functions[ functionCode ].roundingMode ) { in timeFunction()
2428 roundingMode = 0; in timeFunction()
2431 roundingMode = roundingModeIn; in timeFunction()
[all …]
/openbsd-src/sys/lib/libkern/
H A Dsoftfloat.c125 int8 roundingMode; in roundAndPackInt32() local
130 roundingMode = float_rounding_mode(); in roundAndPackInt32()
131 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt32()
134 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt32()
140 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32()
143 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32()
176 int8 roundingMode; in roundAndPackInt64() local
180 roundingMode = float_rounding_mode(); in roundAndPackInt64()
181 roundNearestEven = ( roundingMode == float_round_nearest_even ); in roundAndPackInt64()
184 if ( roundingMode == float_round_to_zero ) { in roundAndPackInt64()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAPFloat.cpp1403 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) { in handleOverflow()
1432 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode, in roundAwayFromZero()
1470 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode, in normalize()
1886 roundingMode rounding_mode, in addOrSubtract()
1916 roundingMode rounding_mode) { in add()
1922 roundingMode rounding_mode) { in subtract()
1928 roundingMode rounding_mode) { in multiply()
1946 roundingMode rounding_mode) { in divide()
2094 roundingMode rounding_mode) { in fusedMultiplyAdd()
2135 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mode) { in roundToIntegral()
[all …]
H A DAPFixedPoint.cpp491 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven; in convertToFloat()
492 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in convertToFloat()
539 APFloat::roundingMode RM = APFloat::rmTowardZero; in getFromFloatValue()
540 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero; in getFromFloatValue()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp1867 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt()
2141 std::optional<APFloat::roundingMode> RM; in ConstantFoldScalarCall1()
/openbsd-src/gnu/llvm/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp1271 APFloat::roundingMode RM)) { in F_Op()