/freebsd/contrib/unbound/compat/ |
H A D | snprintf.c | 239 print_num(char** at, size_t* left, int* ret, int minw, int precision, in print_num() argument 249 if(precision == 0 && zero) numw = 0; in print_num() 250 if(numw < precision) numw = precision; in print_num() 257 if(precision == 0 && zero) { in print_num() 260 if(w < precision) in print_num() 261 print_pad(at, left, ret, '0', precision - w); in print_num() 271 if(precision == 0 && zero) numw = 0; in print_num() 272 if(numw < precision) numw = precision; in print_num() 287 if(precision == 0 && zero) in print_num() 297 int minw, int precision, int prgiven, int zeropad, int minus, in print_num_d() argument [all …]
|
/freebsd/contrib/ldns/compat/ |
H A D | snprintf.c | 238 print_num(char** at, size_t* left, int* ret, int minw, int precision, in print_num() argument 248 if(precision == 0 && zero) numw = 0; in print_num() 249 if(numw < precision) numw = precision; in print_num() 256 if(precision == 0 && zero) { in print_num() 259 if(w < precision) in print_num() 260 print_pad(at, left, ret, '0', precision - w); in print_num() 270 if(precision == 0 && zero) numw = 0; in print_num() 271 if(numw < precision) numw = precision; in print_num() 286 if(precision == 0 && zero) in print_num() 296 int minw, int precision, int prgiven, int zeropad, int minus, in print_num_d() argument [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | snprintf.c | 56 * precision specifications; fix various floating point conversion bugs; 59 * check for integer overflow of the field width, precision, and return 573 int precision = -1; in rpl_vsnprintf() local 660 if (precision == -1) in rpl_vsnprintf() 661 precision = 0; in rpl_vsnprintf() 664 if (precision > (INT_MAX - ch) / 10) { in rpl_vsnprintf() 668 precision = 10 * precision + ch; in rpl_vsnprintf() 672 * C99 says: "A negative precision argument is in rpl_vsnprintf() 673 * taken as if the precision wer in rpl_vsnprintf() 958 fmtstr(char * str,size_t * len,size_t size,const char * value,int width,int precision,int flags) fmtstr() argument 992 fmtint(char * str,size_t * len,size_t size,INTMAX_T value,int base,int width,int precision,int flags) fmtint() argument 1093 fmtflt(char * str,size_t * len,size_t size,LDOUBLE fvalue,int width,int precision,int flags,int * overflow) fmtflt() argument [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMScheduleV6.td | 191 // RunFast mode so that NFP pipeline is used for single-precision when 197 // Single-precision FP Unary 200 // Double-precision FP Unary 203 // Single-precision FP Compare 206 // Double-precision FP Compare 227 // Single-precision FP ALU 230 // Double-precision FP ALU 233 // Single-precision FP Multiply 236 // Double-precision FP Multiply 239 // Single-precision FP MAC [all …]
|
H A D | ARMScheduleA8.td | 249 // RunFast mode so that NFP pipeline is used for single-precision when 256 // Single-precision FP Unary 260 // Double-precision FP Unary 265 // Single-precision FP Compare 269 // Double-precision FP Compare 302 // Single-precision FP ALU 306 // Double-precision FP ALU 311 // Single-precision FP Multiply 315 // Double-precision FP Multiply 320 // Single-precision FP MAC [all …]
|
/freebsd/lib/libc/softfloat/templates/ |
H A D | softfloat-specialize | 67 The pattern for a default generated single-precision NaN. 74 Returns 1 if the single-precision floating-point value `a' is a NaN; 87 Returns 1 if the single-precision floating-point value `a' is a signaling 100 Returns the result of converting the single-precision floating-point NaN 120 precision floating-point format. 132 Takes two single-precision floating-point values `a' and `b', one of which 159 The pattern for a default generated double-precision NaN. 166 Returns 1 if the double-precision floating-point value `a' is a NaN; 179 Returns 1 if the double-precision floating-point value `a' is a signaling 194 Returns the result of converting the double-precision floating-point NaN [all …]
|
/freebsd/lib/libc/softfloat/ |
H A D | softfloat-specialize | 108 The pattern for a default generated single-precision NaN. 115 Returns 1 if the single-precision floating-point value `a' is a NaN; 131 Returns 1 if the single-precision floating-point value `a' is a signaling 148 Returns the result of converting the single-precision floating-point NaN 168 precision floating-point format. 180 Takes two single-precision floating-point values `a' and `b', one of which 207 The pattern for a default generated double-precision NaN. 214 Returns 1 if the double-precision floating-point value `a' is a NaN; 231 Returns 1 if the double-precision floating-point value `a' is a signaling 250 Returns the result of converting the double-precision floating-point NaN [all …]
|
H A D | timesoftfloat.txt | 14 mode, tininess mode, and/or rounding precision. 69 precision operations affected by rounding precision control, `timesoftfloat' 70 also times the function for all three rounding precision modes, one after 72 mode, a single tininess mode, and/or a single rounding precision with 88 operations, particularly for extended double precision (`floatx80') and 89 quadruple precision (`float128'). This is inherent to the remainder 108 For extended double-precision functions affected by rounding precision 110 in which rounding precision is equivalent to single precision. The other 111 rounding precision options are not timed. Likewise, the `-precision64' 112 and `-precision80' options fix the rounding precision equivalent to double [all …]
|
H A D | softfloat.txt | 14 formats are supported: single precision, double precision, extended double 15 precision, and quadruple precision. All operations required by the standard 33 Support for the extended double-precision and quadruple-precision formats 37 references in this document to the extended double precision, quadruple 38 precision, and 64-bit integers should be ignored. 86 file defines four types: `float32' (single precision), `float64' (double 87 precision), `floatx80' (extended double precision), and `float128' 88 (quadruple precision). The `float32' and `float64' types are defined in 146 For extended double precision (`floatx80') only, the rounding precision 153 operations are rounded (as usual) to the full precision of the extended [all …]
|
/freebsd/contrib/ntp/ntpsnmpd/ |
H A D | ntpSnmpSubagentObject.c | 427 int precision; in get_ntpEntTimeResolution() local 436 if (1 != sscanf(ntpvalue, "%d", &precision)) in get_ntpEntTimeResolution() 438 if (precision >= 0) in get_ntpEntTimeResolution() 440 precision = max(precision, -31); in get_ntpEntTimeResolution() 441 resolution = 1 << -precision; in get_ntpEntTimeResolution() 470 int precision; in get_ntpEntTimePrecision() local 479 if (1 != sscanf(ntpvalue, "%d", &precision)) in get_ntpEntTimePrecision() 481 precision32 = (int32)precision; in get_ntpEntTimePrecision()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFloat.cpp | 114 unsigned int precision; member 127 precision <= S.precision; in isRepresentableBy() 324 return semantics.precision; in semanticsPrecision() 359 return Dst.precision >= Src.precision; in isRepresentableAsNormalIn() 929 fill_storage = APInt::getZero(semantics->precision - 1); in makeNaN() 931 fill_storage = APInt::getAllOnes(semantics->precision - 1); in makeNaN() 944 unsigned bitsToPreserve = semantics->precision - 1; in makeNaN() 952 unsigned QNaNBit = semantics->precision - 2; in makeNaN() 1006 semantics->precision - 1) == 0); in isDenormal() 1026 const unsigned PartCount = partCountForBits(semantics->precision); in isSignificandAllOnes() [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/__chrono/ |
H A D | hh_mm_ss.h | 51 using precision = duration<typename __CommonType::rep, ratio<1, __pow10(fractional_width)>>; 60 __f_(chrono::duration_cast<precision>(chrono::abs(__d) - hours() - minutes() - seconds())) {} in hh_mm_ss() 66 _LIBCPP_HIDE_FROM_ABI constexpr precision subseconds() const noexcept { return __f_; } 68 _LIBCPP_HIDE_FROM_ABI constexpr precision to_duration() const noexcept { in hours() 73 _LIBCPP_HIDE_FROM_ABI constexpr explicit operator precision() const noexcept { return to_duration(); } in to_duration() 80 precision __f_; 55 using precision = duration<typename __CommonType::rep, ratio<1, __pow10(fractional_width)>>; global() variable 79 _LIBCPP_HIDE_FROM_ABI constexpr explicit operator precision() const noexcept { return to_duration(); } precision() function
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | OptionalDiagnostic.h | 57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics()); variable 58 precision = (precision * 59 + 195) / 196; 60 F.toString(Buffer, precision);
|
/freebsd/contrib/ncurses/form/ |
H A D | fty_num.c | 60 int precision; member 69 int precision; member 96 argn->precision = args->precision; in Generic_This_Type() 123 arg.precision = va_arg(*ap, int); in Make_This_Type() 188 int prec = argn->precision; in Check_This_Field()
|
H A D | fty_int.c | 50 int precision; member 58 int precision; member 104 arg.precision = va_arg(*ap, int); in Make_This_Type() 170 int prec = argi->precision; in Check_This_Field()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | OSLog.cpp | 84 auto &precision = FS.getPrecision(); in HandlePrintfSpecifier() local 85 switch (precision.getHowSpecified()) { in HandlePrintfSpecifier() 89 ArgsData.back().Size = precision.getConstantAmount(); in HandlePrintfSpecifier() 92 ArgsData.back().Count = Args[precision.getArgIndex()]; in HandlePrintfSpecifier() 100 auto &precision = FS.getPrecision(); in HandlePrintfSpecifier() local 101 switch (precision.getHowSpecified()) { in HandlePrintfSpecifier() 105 ArgsData.back().Size = precision.getConstantAmount(); in HandlePrintfSpecifier() 108 ArgsData.back().Count = Args[precision.getArgIndex()]; in HandlePrintfSpecifier()
|
/freebsd/contrib/ntp/sntp/tests/ |
H A D | packetHandling.c | 141 double offset, precision, synch_distance; in test_OffsetCalculationPositiveOffset() 143 rpkt.precision = -16; /* 0,000015259 */ in test_OffsetCalculationPositiveOffset() 172 offset_calculation(&rpkt, LEN_PKT_NOMAC, &dst, &offset, &precision, &synch_distance); in test_OffsetCalculationNegativeOffset() 175 TEST_ASSERT_EQUAL_DOUBLE(1. / ULOGTOD(16), precision); in test_OffsetCalculationNegativeOffset() 187 double offset, precision, synch_distance; in test_OffsetCalculationNegativeOffset() 189 rpkt.precision = -1; in test_OffsetCalculationNegativeOffset() 219 offset_calculation(&rpkt, LEN_PKT_NOMAC, &dst, &offset, &precision, &synch_distance); 222 TEST_ASSERT_EQUAL_DOUBLE(1. / ULOGTOD(1), precision); in test_HandleUnusablePacket() 121 double offset, precision, synch_distance; test_OffsetCalculationPositiveOffset() local 167 double offset, precision, synch_distance; test_OffsetCalculationNegativeOffset() local
|
/freebsd/usr.bin/seq/ |
H A D | seq.c | 468 int precision, width1, width2, places; in generate_format() local 482 precision = decimal_places(buf); in generate_format() 490 precision = MAX(places, precision); in generate_format() 498 if (precision) { in generate_format() 501 precision, precision, (cc) ? cc : 'f'); in generate_format()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | BuiltinsWebAssembly.def | 138 TARGET_BUILTIN(__builtin_wasm_min_f16x8, "V8hV8hV8h", "nc", "half-precision") 139 TARGET_BUILTIN(__builtin_wasm_max_f16x8, "V8hV8hV8h", "nc", "half-precision") 140 TARGET_BUILTIN(__builtin_wasm_pmin_f16x8, "V8hV8hV8h", "nc", "half-precision") 141 TARGET_BUILTIN(__builtin_wasm_pmax_f16x8, "V8hV8hV8h", "nc", "half-precision") 173 TARGET_BUILTIN(__builtin_wasm_relaxed_madd_f16x8, "V8hV8hV8hV8h", "nc", "half-precision") 174 TARGET_BUILTIN(__builtin_wasm_relaxed_nmadd_f16x8, "V8hV8hV8hV8h", "nc", "half-precision") 200 TARGET_BUILTIN(__builtin_wasm_loadf16_f32, "fh*", "nU", "half-precision") 201 TARGET_BUILTIN(__builtin_wasm_storef16_f32, "vfh*", "n", "half-precision") 202 TARGET_BUILTIN(__builtin_wasm_splat_f16x8, "V8hf", "nc", "half-precision") 203 TARGET_BUILTIN(__builtin_wasm_extract_lane_f16x8, "fV8hi", "nc", "half-precision")
|
/freebsd/contrib/gdtoa/ |
H A D | README | 3 and extended-precision IEEE binary floating-point arithmetic, and 14 The conversion routines use double-precision floating-point arithmetic 15 and, where necessary, high precision integer arithmetic. The routines 27 VAX, or IBM-mainframe double-precision arithmetic internally, but I (dmg) 28 have so far only had a chance to test them with IEEE double precision 47 f IEEE single precision 48 d IEEE double precision 49 x IEEE extended precision, as on Intel 80x87 53 xL IEEE extended precision, as on Motorola 68xxx chips 54 Q quad precision, as on Sun Sparc chips [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_shm.c | 102 int precision; member 239 up->shm->precision = PRECISION; in shm_start() 240 peer->precision = up->shm->precision; in shm_start() 371 int precision; member 506 shm_stat->precision = shmcopy.precision; in shm_query() 636 peer->precision = shm_stat.precision; in shm_timer()
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_value_prf.c | 238 size_t precision, width, delim_len; in bhnd_nvram_val_vprintf() local 253 precision = 1; in bhnd_nvram_val_vprintf() 406 precision = arg; in bhnd_nvram_val_vprintf() 409 precision = 0; in bhnd_nvram_val_vprintf() 423 precision = v; in bhnd_nvram_val_vprintf() 637 width = precision; in bhnd_nvram_val_vprintf() 672 if (have_precision && precision == 0 && in bhnd_nvram_val_vprintf()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_hrtimer.c | 47 nstosbt(hrtimer->expires), nstosbt(hrtimer->precision), 0); in hrtimer_call_handler() 127 hrtimer->precision = nsec; in linux_hrtimer_start_range_ns() 139 nstosbt(hrtimer->precision), hrtimer_call_handler, hrtimer, 0); in linux_hrtimer_forward_now()
|
/freebsd/contrib/libpcap/ |
H A D | savefile.c | 347 pcap_open_offline_with_tstamp_precision(const char *fname, u_int precision, in pcap_open_offline_with_tstamp_precision() argument 392 p = pcap_fopen_offline_with_tstamp_precision(fp, precision, errbuf); in pcap_open_offline_with_tstamp_precision() 408 pcap_t* pcap_hopen_offline_with_tstamp_precision(intptr_t osfd, u_int precision, in pcap_hopen_offline_with_tstamp_precision() argument 431 return pcap_fopen_offline_with_tstamp_precision(file, precision, in pcap_hopen_offline_with_tstamp_precision() 480 pcap_fopen_offline_with_tstamp_precision(FILE *fp, u_int precision, in pcap_fopen_offline_with_tstamp_precision() argument 526 p = (*check_headers[i])(magic, fp, precision, errbuf, &err); in pcap_fopen_offline_with_tstamp_precision()
|
/freebsd/contrib/file/tests/ |
H A D | json2.testfile | 3 "precision": "zip", 13 "precision": "zip",
|