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

/netbsd-current/regress/lib/libc/ieeefp/testfloat/
H A Dtestfloat.c90 int8 operands, roundingPrecision, roundingMode; local
107 roundingMode = 0;
226 roundingMode = ROUND_NEAREST_EVEN;
230 roundingMode = ROUND_TO_ZERO;
233 roundingMode = ROUND_DOWN;
236 roundingMode = ROUND_UP;
288 if ( ! roundingMode ) roundingMode = ROUND_NEAREST_EVEN;
290 testFunction( functionCode, roundingPrecision, roundingMode );
304 functionCode, roundingPrecision, roundingMode );
[all...]
H A DtestFunction.c605 uint8 functionCode, int8 roundingPrecision, int8 roundingMode )
627 switch ( roundingMode ) {
1146 int8 roundingPrecision, roundingMode; local
1156 for ( roundingMode = 1;
1157 roundingMode < NUM_ROUNDINGMODES;
1158 ++roundingMode
1160 if ( ! functions[ functionCode ].roundingMode ) {
1161 roundingMode = 0;
1164 roundingMode = roundingModeIn;
1167 functionCode, roundingPrecision, roundingMode );
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFloat.h188 using roundingMode = llvm::RoundingMode;
190 static constexpr roundingMode rmNearestTiesToEven =
192 static constexpr roundingMode rmTowardPositive = RoundingMode::TowardPositive;
193 static constexpr roundingMode rmTowardNegative = RoundingMode::TowardNegative;
194 static constexpr roundingMode rmTowardZero = RoundingMode::TowardZero;
195 static constexpr roundingMode rmNearestTiesToAway =
275 opStatus add(const IEEEFloat &, roundingMode);
276 opStatus subtract(const IEEEFloat &, roundingMode);
277 opStatus multiply(const IEEEFloat &, roundingMode);
278 opStatus divide(const IEEEFloat &, roundingMode);
[all...]
/netbsd-current/lib/libc/softfloat/bits32/
H A Dsoftfloat.c211 int8 roundingMode; local
216 roundingMode = float_rounding_mode;
217 roundNearestEven = roundingMode == float_round_nearest_even;
220 if ( roundingMode == float_round_to_zero ) {
226 if ( roundingMode == float_round_up ) roundIncrement = 0;
229 if ( roundingMode == float_round_down ) roundIncrement = 0;
423 int8 roundingMode; local
426 roundingMode = float_rounding_mode;
427 roundNearestEven = ( roundingMode == float_round_nearest_even );
430 if ( roundingMode
595 int8 roundingMode; local
737 int8 roundingMode; local
1421 int8 roundingMode; local
1576 int8 roundingMode; local
[all...]
/netbsd-current/regress/lib/libc/ieeefp/testfloat/include/
H A DtestFunction.h153 flag roundingPrecision, roundingMode; member in struct:__anon7819
/netbsd-current/sys/lib/libkern/
H A Dsoftfloat.c107 int8 roundingMode; local
112 roundingMode = float_rounding_mode();
113 roundNearestEven = ( roundingMode == float_round_nearest_even );
116 if ( roundingMode == float_round_to_zero ) {
122 if ( roundingMode == float_round_up ) roundIncrement = 0;
125 if ( roundingMode == float_round_down ) roundIncrement = 0;
157 int8 roundingMode; local
161 roundingMode = float_rounding_mode();
162 roundNearestEven = ( roundingMode == float_round_nearest_even );
165 if ( roundingMode
199 int8 roundingMode; local
322 int8 roundingMode; local
483 int8 roundingMode; local
652 int8 roundingMode; local
976 int8 roundingMode; local
1573 int8 roundingMode; local
2553 int8 roundingMode; local
3452 int8 roundingMode; local
4494 int8 roundingMode; local
[all...]
/netbsd-current/lib/libc/softfloat/bits64/
H A Dsoftfloat.c124 int8 roundingMode; local
129 roundingMode = float_rounding_mode;
130 roundNearestEven = ( roundingMode == float_round_nearest_even );
133 if ( roundingMode == float_round_to_zero ) {
139 if ( roundingMode == float_round_up ) roundIncrement = 0;
142 if ( roundingMode == float_round_down ) roundIncrement = 0;
175 int8 roundingMode; local
179 roundingMode = float_rounding_mode;
180 roundNearestEven = ( roundingMode == float_round_nearest_even );
183 if ( roundingMode
314 int8 roundingMode; local
484 int8 roundingMode; local
662 int8 roundingMode; local
994 int8 roundingMode; local
1651 int8 roundingMode; local
2616 int8 roundingMode; local
3548 int8 roundingMode; local
4667 int8 roundingMode; local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DAPFloat.cpp1293 IEEEFloat::opStatus IEEEFloat::handleOverflow(roundingMode rounding_mode) {
1317 bool IEEEFloat::roundAwayFromZero(roundingMode rounding_mode,
1355 IEEEFloat::opStatus IEEEFloat::normalize(roundingMode rounding_mode,
1760 roundingMode rounding_mode,
1790 roundingMode rounding_mode) {
1796 roundingMode rounding_mode) {
1802 roundingMode rounding_mode) {
1820 roundingMode rounding_mode) {
1965 roundingMode rounding_mode) {
2006 IEEEFloat::opStatus IEEEFloat::roundToIntegral(roundingMode rounding_mod
[all...]
H A DAPFixedPoint.cpp460 APFloat::roundingMode RM = APFloat::rmNearestTiesToEven;
461 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero;
508 APFloat::roundingMode RM = APFloat::rmTowardZero;
509 APFloat::roundingMode LosslessRM = APFloat::rmTowardZero;
/netbsd-current/lib/libc/softfloat/
H A Dtimesoftfloat.c1920 flag roundingPrecision, roundingMode; member in struct:__anon7680
2055 int8 roundingMode,
2078 switch ( roundingMode ) {
2417 int8 roundingPrecision, roundingMode, tininessMode; local
2427 for ( roundingMode = 1;
2428 roundingMode < NUM_ROUNDINGMODES;
2429 ++roundingMode
2431 if ( ! functions[ functionCode ].roundingMode ) {
2432 roundingMode = 0;
2435 roundingMode
2052 timeFunctionVariety( uint8 functionCode, int8 roundingPrecision, int8 roundingMode, int8 tininessMode ) argument
2486 int8 operands, roundingPrecision, roundingMode, tininessMode; local
[all...]
/netbsd-current/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-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp1784 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero
1966 Optional<APFloat::roundingMode> RM;

Completed in 421 milliseconds