Home
last modified time | relevance | path

Searched refs:cutoff (Results 1 – 25 of 66) sorted by relevance

123

/freebsd/contrib/sendmail/libsm/
H A Dstrto.c51 register LONGLONG_T acc, cutoff; variable
106 cutoff = neg ? LLONG_MIN : LLONG_MAX;
107 cutlim = cutoff % base;
108 cutoff /= base;
114 cutoff += 1;
132 if (acc < cutoff || (acc == cutoff && c > cutlim))
147 if (acc > cutoff || (acc == cutoff && c > cutlim))
191 register ULONGLONG_T acc, cutoff; local
222 cutoff = ULLONG_MAX / (ULONGLONG_T)base;
236 if (acc > cutoff || (acc == cutoff && c > cutlim))
/freebsd/crypto/openssh/openbsd-compat/
H A Dstrtoll.c53 long long acc, cutoff; in strtoll() local
101 cutoff = neg ? LLONG_MIN : LLONG_MAX; in strtoll()
102 cutlim = cutoff % base; in strtoll()
103 cutoff /= base; in strtoll()
107 cutoff += 1; in strtoll()
123 if (acc < cutoff || (acc == cutoff && c > cutlim)) { in strtoll()
133 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoll()
H A Dstrtoul.c51 unsigned long acc, cutoff; in strtoul() local
79 cutoff = ULONG_MAX / (unsigned long)base; in strtoul()
92 if (acc > cutoff || acc == cutoff && c > cutlim) { in strtoul()
H A Dstrtoull.c53 unsigned long long acc, cutoff; in strtoull() local
81 cutoff = ULLONG_MAX / (unsigned long long)base; in strtoull()
94 if (acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoull()
/freebsd/lib/libc/iconv/
H A D_strtol.h51 __INT acc, cutoff; in _FUNCNAME() local
121 cutoff = (neg ? __INT_MIN : __INT_MAX); in _FUNCNAME()
122 cutlim = (int)(cutoff % base); in _FUNCNAME()
123 cutoff /= base; in _FUNCNAME()
127 cutoff += 1; in _FUNCNAME()
143 if (acc < cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
158 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
H A D_strtoul.h50 __UINT acc, cutoff; in _FUNCNAME() local
103 cutoff = __UINT_MAX / (__UINT)base; in _FUNCNAME()
116 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
/freebsd/contrib/unbound/util/
H A Drfc_1982.c48 const uint32_t cutoff = ((uint32_t) 1 << (32 - 1)); in compare_1982() local
52 } else if ((a < b && b - a < cutoff) || (a > b && a - b > cutoff)) { in compare_1982()
63 const uint32_t cutoff = ((uint32_t) 1 << (32 - 1)); in subtract_1982() local
67 if(a < b && b - a < cutoff) { in subtract_1982()
70 if(a > b && a - b > cutoff) { in subtract_1982()
/freebsd/contrib/bmake/
H A D_strtol.h59 __INT acc, cutoff; in _FUNCNAME() local
139 cutoff = (__INT)(neg ? __INT_MIN : __INT_MAX); in _FUNCNAME()
140 cutlim = (int)(cutoff % base); in _FUNCNAME()
141 cutoff /= base; in _FUNCNAME()
145 cutoff += 1; in _FUNCNAME()
163 if (acc < cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
178 if (acc > cutoff || (acc == cutoff && i > cutlim)) { in _FUNCNAME()
/freebsd/sys/libkern/
H A Dstrtol.c52 unsigned long cutoff; in strtol() local
94 cutoff = neg ? -(unsigned long)LONG_MIN : LONG_MAX; in strtol()
95 cutlim = cutoff % (unsigned long)base; in strtol()
96 cutoff /= (unsigned long)base; in strtol()
108 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtol()
H A Dstrtoq.c52 u_quad_t qbase, cutoff; in strtoq() local
100 cutoff = neg ? (u_quad_t)-(QUAD_MIN + QUAD_MAX) + QUAD_MAX : QUAD_MAX; in strtoq()
101 cutlim = cutoff % qbase; in strtoq()
102 cutoff /= qbase; in strtoq()
114 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoq()
H A Dstrtoul.c52 unsigned long cutoff; in strtoul() local
74 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in strtoul()
87 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoul()
H A Dstrtouq.c52 u_quad_t qbase, cutoff; in strtouq() local
78 cutoff = (u_quad_t)UQUAD_MAX / qbase; in strtouq()
91 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtouq()
/freebsd/contrib/ntp/libparse/
H A Dclk_rawdcf.c425 cutoff = 0; in cvt_rawdcf()
444 cutoff += i; in cvt_rawdcf()
458 cutoff /= lowmax; in cvt_rawdcf()
471 for (i = 0; i <= cutoff; i++) in cvt_rawdcf()
491 cutoff = 0; in cvt_rawdcf()
496 cutoff +=histbuf[i]; in cvt_rawdcf()
501 if (cutoff) in cvt_rawdcf()
503 highmax /= cutoff; in cvt_rawdcf()
510 span = cutoff = lowmax; in cvt_rawdcf()
515 cutoff = i; in cvt_rawdcf()
[all …]
/freebsd/lib/libc/stdlib/
H A Dstrtol.c56 unsigned long cutoff; in strtol_l() local
116 cutoff = neg ? (unsigned long)-(LONG_MIN + LONG_MAX) + LONG_MAX in strtol_l()
118 cutlim = cutoff % base; in strtol_l()
119 cutoff /= base; in strtol_l()
131 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtol_l()
H A Dstrtoll.c56 unsigned long long cutoff; in strtoll_l() local
118 cutoff = neg ? (unsigned long long)-(LLONG_MIN + LLONG_MAX) + LLONG_MAX in strtoll_l()
120 cutlim = cutoff % base; in strtoll_l()
121 cutoff /= base; in strtoll_l()
133 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoll_l()
H A Dstrtoimax.c56 uintmax_t cutoff; in strtoimax_l() local
117 cutoff = neg ? (uintmax_t)-(INTMAX_MIN + INTMAX_MAX) + INTMAX_MAX in strtoimax_l()
119 cutlim = cutoff % base; in strtoimax_l()
120 cutoff /= base; in strtoimax_l()
132 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoimax_l()
H A Dstrtoul.c55 unsigned long cutoff; in strtoul_l() local
96 cutoff = ULONG_MAX / base; in strtoul_l()
109 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoul_l()
H A Dstrtoull.c56 unsigned long long cutoff; in strtoull_l() local
97 cutoff = ULLONG_MAX / base; in strtoull_l()
110 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoull_l()
H A Dstrtoumax.c56 uintmax_t cutoff; in strtoumax_l() local
97 cutoff = UINTMAX_MAX / base; in strtoumax_l()
110 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in strtoumax_l()
/freebsd/lib/libc/locale/
H A Dwcstol.c54 unsigned long cutoff; in wcstol_l() local
95 cutoff = neg ? (unsigned long)-(LONG_MIN + LONG_MAX) + LONG_MAX in wcstol_l()
97 cutlim = cutoff % base; in wcstol_l()
98 cutoff /= base; in wcstol_l()
115 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in wcstol_l()
H A Dwcstoimax.c54 uintmax_t cutoff; in wcstoimax_l() local
95 cutoff = neg ? (uintmax_t)-(INTMAX_MIN + INTMAX_MAX) + INTMAX_MAX in wcstoimax_l()
97 cutlim = cutoff % base; in wcstoimax_l()
98 cutoff /= base; in wcstoimax_l()
115 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in wcstoimax_l()
H A Dwcstoll.c54 unsigned long long cutoff; in wcstoll_l() local
95 cutoff = neg ? (unsigned long long)-(LLONG_MIN + LLONG_MAX) + LLONG_MAX in wcstoll_l()
97 cutlim = cutoff % base; in wcstoll_l()
98 cutoff /= base; in wcstoll_l()
115 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in wcstoll_l()
H A Dwcstoul.c54 unsigned long cutoff; in wcstoul_l() local
95 cutoff = ULONG_MAX / base; in wcstoul_l()
113 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in wcstoul_l()
H A Dwcstoull.c54 unsigned long long cutoff; in wcstoull_l() local
95 cutoff = ULLONG_MAX / base; in wcstoull_l()
113 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) in wcstoull_l()
/freebsd/contrib/ntp/parseutil/
H A Ddcfd.c565 cutoff = 0; in cvt_rawdcf()
590 cutoff += i; in cvt_rawdcf()
612 cutoff /= lowmax; in cvt_rawdcf()
628 for (i = 0; i <= cutoff; i++) in cvt_rawdcf()
656 cutoff = 0; /* bitcount */ in cvt_rawdcf()
664 cutoff +=histbuf[i]; in cvt_rawdcf()
672 if (cutoff) in cvt_rawdcf()
674 highmax /= cutoff; in cvt_rawdcf()
691 span = cutoff = lowmax; in cvt_rawdcf()
700 cutoff = span = i; in cvt_rawdcf()
[all …]

123