HomeSort by: relevance | last modified time | path
    Searched refs:ndigits (Results 1 - 25 of 82) sorted by relevancy

1 2 3 4

  /src/lib/libc/gdtoa/
hdtoa.c 75 roundup(char *s0, int ndigits)
79 for (s = s0 + ndigits - 1; *s == 0xf; s--) {
91 * Round the given digit string to ndigits digits according to the
97 dorounding(char *s0, int ndigits, int sign, int *decpt)
106 if ((s0[ndigits] > 8) ||
107 (s0[ndigits] == 8 && s0[ndigits - 1] & 1))
108 adjust = roundup(s0, ndigits);
112 adjust = roundup(s0, ndigits);
116 adjust = roundup(s0, ndigits);
    [all...]
ldtoa.c 54 ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign, char **rve)
102 ret = gdtoa(&fpi, be, (ULong *)bits, &kind, mode, ndigits, decpt, rve);
107 return dtoa((double)*ld, mode, ndigits, decpt, sign, rve);
gdtoa.h 127 extern char* dtoa ANSI((double d, int mode, int ndigits, int *decpt,
129 extern char* hdtoa ANSI((double d, const char *xdigs, int ndigits, int *decpt,
131 extern char* ldtoa ANSI((long double *ld, int mode, int ndigits, int *decpt,
133 extern char* hldtoa ANSI((long double e, const char *xdigs, int ndigits,
137 int mode, int ndigits, int *decpt, char **rve));
dtoa.c 80 (d0, mode, ndigits, decpt, sign, rve)
81 double d0; int mode, ndigits, *decpt, *sign; char **rve;
83 (double d0, int mode, int ndigits, int *decpt, int *sign, char **rve)
86 /* Arguments ndigits, decpt, sign are similar to those
98 2 ==> max(1,ndigits) significant digits. This gives a
101 3 ==> through ndigits past the decimal point. This
104 ndigits can be negative.
313 ndigits = 0;
319 if (ndigits <= 0)
320 ndigits = 1
    [all...]
gdtoa.c 120 (fpi, be, bits, kindp, mode, ndigits, decpt, rve)
122 int *kindp, mode, ndigits, *decpt; char **rve;
124 (CONST FPI *fpi, int be, ULong *bits, int *kindp, int mode, int ndigits, int *decpt, char **rve)
127 /* Arguments ndigits and decpt are similar to the second and third
140 2 ==> max(1,ndigits) significant digits. This gives a
143 3 ==> through ndigits past the decimal point. This
146 ndigits can be negative.
306 ndigits = 0;
312 if (ndigits <= 0)
313 ndigits = 1
    [all...]
  /src/external/lgpl3/gmp/dist/printf/
doprntf.c 64 int prec, ndigits, free_size, len, newlen, justify, justlen, explen; local
80 ndigits = 0;
99 ndigits = prec + 2 + 1
101 ndigits = MAX (ndigits, 1);
107 ndigits = prec + 1;
117 ndigits = MAX (prec, 1);
121 TRACE (printf (" ndigits %d\n", ndigits));
123 s = mpf_get_str (NULL, &exp, p->base, ndigits, f)
    [all...]
  /src/external/gpl3/gcc/dist/libgfortran/io/
write_float.def 132 int ndigits, edigits;
160 ndigits = nprinted - 2;
162 ndigits = precision + 1;
166 e = atoi (&buffer[ndigits + 3]) + 1;
187 nbefore = ndigits - precision;
226 memmove (digits + 1, digits, ndigits - 1);
235 for (i = 0; i < ndigits; i++)
237 digits[ndigits - 1] = '1';
255 ndigits--;
263 memmove (digits + nbefore, digits + nbefore + 1, ndigits - nbefore)
    [all...]
  /src/external/gpl3/gcc.old/dist/libgfortran/io/
write_float.def 132 int ndigits, edigits;
160 ndigits = nprinted - 2;
162 ndigits = precision + 1;
166 e = atoi (&buffer[ndigits + 3]) + 1;
187 nbefore = ndigits - precision;
226 memmove (digits + 1, digits, ndigits - 1);
235 for (i = 0; i < ndigits; i++)
237 digits[ndigits - 1] = '1';
255 ndigits--;
263 memmove (digits + nbefore, digits + nbefore + 1, ndigits - nbefore)
    [all...]
  /src/lib/libc/gdtoa/test/
dt.c 35 * number[: mode [ndigits]]
37 * #hex0 hex1[: mode [ndigits]]
41 * (least significant) word, and mode and ndigits are
193 int mode = 0, ndigits = 17; local
208 /* sscanf(buf+1, "%lx %lx:%d %d", &x, &y, &mode, &ndigits); */
213 sscanf(se, ":%d %d", &mode, &ndigits);
230 sscanf(se+1,"%d %d", &mode, &ndigits);
245 s = dtoa(dval(&d), mode, ndigits, &decpt, &sign, &se);
246 printf("\tdtoa(mode = %d, ndigits = %d):\n", mode, ndigits);
    [all...]
  /src/external/gpl3/gcc/dist/libgcc/config/libbid/
bid64_string.c 253 int expon_x = 0, sgn_expon, ndigits, add_expon = 0, midpoint = local
388 ndigits = 0;
403 ndigits++;
404 if (ndigits <= 16) {
407 } else if (ndigits == 17) {
439 } else { // ndigits > 17
  /src/external/gpl3/gcc.old/dist/libgcc/config/libbid/
bid64_string.c 253 int expon_x = 0, sgn_expon, ndigits, add_expon = 0, midpoint = local
388 ndigits = 0;
403 ndigits++;
404 if (ndigits <= 16) {
407 } else if (ndigits == 17) {
439 } else { // ndigits > 17
  /src/external/lgpl3/mpfr/dist/tests/
tsprintf.c 1442 int ndigits, r; local
1448 ndigits = 1000;
1449 r = mpfr_snprintf (0, 0, "%.*RDf", ndigits, x);
1450 /* the return value should be ndigits + 310 */
1451 MPFR_ASSERTN(r == ndigits + 310);
1453 ndigits = INT_MAX - 310;
1454 r = mpfr_snprintf (0, 0, "%.*RDf", ndigits, x);
1457 ndigits = INT_MAX - 10;
1458 r = mpfr_snprintf (0, 0, "%.*RDa", ndigits, x);
1461 ndigits = INT_MAX - 7
    [all...]
  /src/crypto/external/bsd/openssh/dist/
fmt_scaled.c 83 unsigned int i, ndigits = 0, fract_digits = 0; local
133 if (++ndigits >= MAX_DIGITS) {
  /src/external/bsd/top/dist/
ap_snprintf.c 117 static char *ap_cvt(double arg, int ndigits, int *decpt, int *sign, int eflag, char *buf)
123 if (ndigits >= NDIG - 1)
124 ndigits = NDIG - 2;
153 p1 = &buf[ndigits];
190 static char *ap_ecvt(double arg, int ndigits, int *decpt, int *sign, char *buf)
192 return (ap_cvt(arg, ndigits, decpt, sign, 1, buf));
195 static char *ap_fcvt(double arg, int ndigits, int *decpt, int *sign, char *buf)
197 return (ap_cvt(arg, ndigits, decpt, sign, 0, buf));
  /src/external/gpl3/gdb/dist/gnulib/import/
stdlib.in.h 358 (double number, int ndigits, int *decptp, int *signp));
362 (double number, int ndigits, int *decptp, int *signp));
381 (double number, int ndigits, int *decptp, int *signp));
385 (double number, int ndigits, int *decptp, int *signp));
403 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
406 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb.old/dist/gnulib/import/
stdlib.in.h 358 (double number, int ndigits, int *decptp, int *signp));
362 (double number, int ndigits, int *decptp, int *signp));
381 (double number, int ndigits, int *decptp, int *signp));
385 (double number, int ndigits, int *decptp, int *signp));
403 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
406 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/mit/isl/dist/imath/
imath.h 93 `ndigits > 0`. */
94 void mp_int_default_precision(mp_size ndigits);
98 Requires `ndigits >= sizeof(mp_word)`. */
99 void mp_int_multiply_threshold(mp_size ndigits);
  /src/external/gpl2/groff/dist/src/preproc/refer/
label.y 227 struct { int ndigits; int val; } dig;
323 $$ = new format_expr('0', $2.ndigits, $2.val);
384 { $$.ndigits = 1; $$.val = $1; }
386 { $$.ndigits = $1.ndigits + 1; $$.val = $1.val*10 + $2; }
  /src/external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
  /src/external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/
stdlib.h 914 (double number, int ndigits, int *decptp, int *signp));
918 (double number, int ndigits, int *decptp, int *signp));
937 (double number, int ndigits, int *decptp, int *signp));
941 (double number, int ndigits, int *decptp, int *signp));
959 _GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
962 _GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));

Completed in 55 milliseconds

1 2 3 4