| /freebsd/lib/libc/softfloat/ |
| H A D | timesoftfloat.txt | 13 point routines. Each routine can be evaluated for every relevant rounding 14 mode, tininess mode, and/or rounding precision. 63 the four rounding modes, one after the other. If the rounding mode is not 65 some operations do not require rounding--only the nearest/even rounding mode 68 tininess detected before rounding and after rounding. For extended double- 69 precision operations affected by rounding precision control, `timesoftfloat' 70 also times the function for all three rounding precision modes, one after 71 the other. Evaluation of a function can be limited to a single rounding 72 mode, a single tininess mode, and/or a single rounding precision with 108 For extended double-precision functions affected by rounding precision [all …]
|
| H A D | softfloat.txt | 135 All four rounding modes prescribed by the IEC/IEEE Standard are implemented 136 for all operations that require rounding. The rounding mode is selected 139 `float_round_down', or `float_round_up'. The rounding mode is initialized 146 For extended double precision (`floatx80') only, the rounding precision 157 (`float64'), respectively. When rounding to reduced precision, additional 158 bits in the result significand beyond the rounding point are set to zero. 183 for underflow either before or after rounding. The choice is made by 186 Detecting tininess after rounding is better because it results in fewer 219 format are always exact and so require no rounding. Conversions from 32-bit 231 integer value, the operand is rounded according to the current rounding [all …]
|
| /freebsd/contrib/gdtoa/ |
| H A D | strtorf.c | 69 strtorf(s, sp, rounding, f) CONST char *s; char **sp; int rounding; float *f; in strtorf() argument 71 strtorf(CONST char *s, char **sp, int rounding, float *f) 81 if (rounding != FPI_Round_near) { 83 fpi1.rounding = rounding;
|
| H A D | strtord.c | 73 strtord_l(s, sp, rounding, d, locale) CONST char *s; char **sp; int rounding; in strtord_l() argument 76 strtord_l(CONST char *s, char **sp, int rounding, double *d, locale_t locale) 86 if (rounding != FPI_Round_near) { 88 fpi1.rounding = rounding;
|
| H A D | strtorxL.c | 88 strtorxL(s, sp, rounding, L) CONST char *s; char **sp; int rounding; void *L; in strtorxL() argument 90 strtorxL(CONST char *s, char **sp, int rounding, void *L) 100 if (rounding != FPI_Round_near) { 102 fpi1.rounding = rounding;
|
| H A D | strtorQ.c | 106 strtorQ_l(s, sp, rounding, L, locale) CONST char *s; char **sp; int rounding; in strtorQ_l() argument 109 strtorQ_l(CONST char *s, char **sp, int rounding, void *L, locale_t locale) 119 if (rounding != FPI_Round_near) { 121 fpi1.rounding = rounding;
|
| H A D | strtorx.c | 109 strtorx_l(s, sp, rounding, L, locale) CONST char *s; char **sp; int rounding; in strtorx_l() argument 112 strtorx_l(CONST char *s, char **sp, int rounding, void *L, locale_t locale) 122 if (rounding != FPI_Round_near) { 124 fpi1.rounding = rounding;
|
| H A D | strtordd.c | 175 strtordd(s, sp, rounding, dd) CONST char *s; char **sp; int rounding; double *dd; in strtordd() argument 177 strtordd(CONST char *s, char **sp, int rounding, double *dd) 191 if (rounding != FPI_Round_near) { 193 fpi1.rounding = rounding;
|
| H A D | README | 21 http://cm.bell-labs.com/cm/cs/what/ampl/REFS/rounding.ps.gz 59 helper routines: one for round-nearest (or the current rounding 72 one with rounding direction specified: 127 the bottom of the exponent range. To get correct rounding, this 139 arithmetic with the default rounding mode (round-to-nearest) and, on 141 (53-bit) rounding precision. If the machine uses (the equivalent of) 150 rounding precision on systems (such as Intel IA32 systems) that may 151 suffer double rounding due to use of extended-precision registers. 153 one in strtod.c when the latter is run with 53-bit rounding precision. 194 style and conversions with direction of rounding specified (so that, if [all …]
|
| H A D | gethex.c | 157 switch(fpi->rounding) { 174 switch(fpi->rounding) { 269 switch (fpi->rounding) { 312 switch(fpi->rounding) {
|
| H A D | changes | 3 (fixed-point mode); fix rounding bug in these modes when the input 5 i.e., when the result, before rounding, would be empty but might 18 rounding, would be empty, but rounds to one digit: *decpt was low by 119 that caused one-bit rounding errors in certain denormal numbers, such 287 testbase program is unhappy with this new rounding, as it can 322 loop with a boundary case of directed rounding. Example input to 347 IEEE arithmetic (with 53-bit rounding precision on 80x87 chips). 373 denormal result should be zero, correct logic for rounding up when the 388 but does not require 53-bit rounding precision on Intel IA32 systems. 428 and with hex input, get the current rounding mode from fegetround(). [all …]
|
| H A D | gdtoa_fltrnds.h | 17 fpi1.rounding = Rounding;
|
| H A D | printf.c0 | 89 int rounding; 93 enum { /* FPI.rounding values: same as FLT_ROUNDS */ 520 fpi1 = *fpb.fpi; fpi1.rounding = Rounding; fpb.fpi = &fpi1;} 527 fpi1 = *fpb.fpi; fpi1.rounding = Rounding; fpb.fpi = &fpi1;} 582 int rounding = fpi->rounding; 584 if (rounding > FPI_Round_near && b->sign) 585 rounding = FPI_Round_up + FPI_Round_down - rounding; 586 if (rounding == FPI_Round_down) 587 rounding = FPI_Round_zero; 593 switch(rounding) {
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | zfs_crrd.c | 168 rrd_query(rrd_t *rrd, hrtime_t tv, dbrrd_rounding_t rounding) in rrd_query() argument 175 if (rounding == DBRRD_FLOOR) { in rrd_query() 206 dbrrd_query(dbrrd_t *r, hrtime_t tv, dbrrd_rounding_t rounding) in dbrrd_query() argument 211 dm = rrd_query(&r->dbr_minutes, tv, rounding); in dbrrd_query() 212 dd = rrd_query(&r->dbr_days, tv, rounding); in dbrrd_query() 213 dy = rrd_query(&r->dbr_months, tv, rounding); in dbrrd_query()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
| H A D | fp_mul_impl.inc | 10 // rounding (to nearest, ties to even). 98 // The result is denormal before rounding. 112 // The result is normal before rounding. Insert the exponent. 120 // Perform the final rounding. The final result may overflow to infinity, 122 // We use the default IEEE-754 round-to-nearest, ties-to-even rounding mode.
|
| H A D | fp_add_impl.inc | 9 // This file implements soft-float addition with the IEEE-754 default rounding 93 // bottom bit to get rounding correct. 133 // The result is denormal before rounding. The exponent is zero and we 151 // Perform the final rounding. The result may overflow to infinity, but
|
| /freebsd/lib/libc/gdtoa/ |
| H A D | _ldtoa.c | 74 fpi.rounding ^= (fpi.rounding >> 1) & u.bits.sign; in __ldtoa()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kInstrArithmetic.td | 1008 class MxFArithBase_FF<dag outs, dag ins, string asm, string rounding, 1011 let Uses = !if(!eq(rounding, ""), [FPC], []); 1013 let Predicates = !if(!eq(rounding, ""), [AtLeastM68881], [AtLeastM68040]); 1016 class MxFPOpModeSelector<string rounding, bits<7> single, bits<7> double, 1018 bits<7> Mode = !cond(!eq(rounding, "s"): single, 1019 !eq(rounding, "d"): double, 1020 !eq(rounding, ""): extended); 1027 class MxFUnary_FF<MxOpBundle Opnd, string rounding, 1030 "f"#rounding#mnemonic#".x\t$src, $dst", rounding, [(null_frag)]> { 1048 foreach rounding = ["", "s", "d"] in { [all …]
|
| H A D | M68kInstrData.td | 731 string rounding = ""> 733 "f"#rounding#"move."#size#"\t$src, $dst", pattern> { 735 let Uses = !if(!eq(rounding, ""), [FPC], []); 738 let Predicates = [!if(!eq(rounding, ""), AtLeastM68881, AtLeastM68040)]; 742 class MxFMove_FF<string rounding, int size, 745 [(null_frag)], rounding> { 758 !cond(!eq(rounding, "s"): 0b1000000, 759 !eq(rounding, "d"): 0b1000100, 765 foreach rounding = ["", "s", "d"] in { 766 def F # !toupper(rounding) # MOV80fp_fp : MxFMove_FF<rounding, 80>; [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoVSDPatterns.td | 97 // Value to indicate no rounding mode change in 197 // Value to indicate no rounding mode change in 261 // Value to indicate no rounding mode change in 372 // Value to indicate no rounding mode change in 432 // Value to indicate no rounding mode change in 583 // Value to indicate no rounding mode change in 596 // Value to indicate no rounding mode change in 607 // Value to indicate no rounding mode change in 627 // Value to indicate no rounding mode change in 639 // Value to indicate no rounding mode change in [all …]
|
| H A D | RISCVInstrInfoF.td | 151 // Floating-point rounding mode 169 // Variants of the rounding mode operand that default to 'rne'. This is used 170 // for historical/legacy reasons. fcvt functions where the rounding mode 173 // with the rounding mode set to something other than 'rne', we retain this 760 // float->int32 with current rounding mode. 766 // [u]int->float. Match GCC and default to using dynamic rounding mode. 780 // float->int32 with current rounding mode. 786 // [u]int->float. Match GCC and default to using dynamic rounding mode. 810 // float->int64 with current rounding mode. 818 // [u]int->fp. Match GCC and default to using dynamic rounding mode. [all …]
|
| H A D | RISCVInstrInfoZfh.td | 503 // half->int32 with current rounding mode. 509 // [u]int->half. Match GCC and default to using dynamic rounding mode. 523 // half->int32 with current rounding mode. 529 // [u]int->half. Match GCC and default to using dynamic rounding mode. 549 // half->int64 with current rounding mode. 557 // [u]int->fp. Match GCC and default to using dynamic rounding mode. 579 // half->int64 with current rounding mode. 587 // [u]int->fp. Match GCC and default to using dynamic rounding mode.
|
| /freebsd/contrib/arm-optimized-routines/math/ |
| H A D | README.contributors | 36 - All standard rounding modes need to be supported but in non-default rounding 50 - Vector math code does not need to work in non-nearest rounding mode and error 75 - The code should be reasonably performant on x86_64 too, e.g. some rounding
|
| /freebsd/contrib/arm-optimized-routines/math/tools/ |
| H A D | exp.sollya | 9 b = b + b*0x1p-16; // increase interval for non-nearest rounding (TOINT_NARROW) 30 // double interval error for non-nearest rounding
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | LeonFeatures.td | 50 "LEON3 erratum detection: Detects any rounding mode change " 51 "request: use only the round-to-nearest rounding mode"
|