Home
last modified time | relevance | path

Searched refs:lim (Results 1 – 25 of 140) sorted by relevance

123456

/third_party/boost/libs/config/test/
Dlimits_test.cpp78 typedef std::numeric_limits<T> lim; in test_integral_limits() typedef
81 << " min: " << make_char_numeric_for_streaming((lim::min)()) in test_integral_limits()
82 << ", max: " << make_char_numeric_for_streaming((lim::max)()) in test_integral_limits()
85 BOOST_TEST(static_cast<bool>(lim::is_specialized)); in test_integral_limits()
86 BOOST_TEST(static_cast<bool>(lim::is_integer)); in test_integral_limits()
88 BOOST_TEST(static_cast<bool>((lim::min)() < (lim::max)())); in test_integral_limits()
108 typedef std::numeric_limits<T> lim; in test_float_limits() typedef
110 BOOST_TEST(static_cast<bool>(lim::is_specialized)); in test_float_limits()
111 BOOST_TEST(static_cast<bool>(!lim::is_modulo)); in test_float_limits()
112 BOOST_TEST(static_cast<bool>(!lim::is_integer)); in test_float_limits()
[all …]
/third_party/boost/boost/wave/cpplexer/re2clex/
Dcpp_re.hpp42 limit = uchar_wrapper (s->lim); \
54 s->lim = limit; \
63 if (s->cur > s->lim) \
182 if (NULL == s->lim) in fill()
183 s->lim = s->top; in fill()
184 memmove(s->bot, s->tok, s->lim - s->tok); in fill()
188 s->lim -= cnt; in fill()
192 if((s->top - s->lim) < BOOST_WAVE_BSIZE) in fill()
194 uchar *buf = (uchar*) malloc(((s->lim - s->bot) + BOOST_WAVE_BSIZE)*sizeof(uchar)); in fill()
205 memmove(buf, s->tok, s->lim - s->tok); in fill()
[all …]
/third_party/musl/libc-test/src/regression/
Drlimit-open-files.c11 static const long lim = 42; in main() local
16 rl.rlim_max = lim; in main()
17 rl.rlim_cur = lim; in main()
19 t_error("setrlimit(%d, %ld) failed: %s\n", r, lim, strerror(errno)); in main()
22 if (rl.rlim_max != lim || rl.rlim_cur != lim) in main()
23 …limit %d says cur=%ld,max=%ld after setting the limit to %ld\n", r, rl.rlim_cur, rl.rlim_max, lim); in main()
29 if (maxfd+1 != lim) in main()
30 t_error("more fds are open than rlimit allows: fd=%d, limit=%d\n", maxfd, lim); in main()
/third_party/boost/libs/wave/samples/waveidl/idllexer/
Didl_re.hpp47 #define YYLIMIT s->lim
176 memcpy(s->bot, s->tok, s->lim - s->tok); in fill()
180 s->lim -= cnt; in fill()
184 if((s->top - s->lim) < BOOST_WAVE_BSIZE) in fill()
186 uchar *buf = (uchar*) malloc(((s->lim - s->bot) + BOOST_WAVE_BSIZE)*sizeof(uchar)); in fill()
203 memcpy(buf, s->tok, s->lim - s->tok); in fill()
207 s->lim = &buf[s->lim - s->bot]; in fill()
208 s->top = &s->lim[BOOST_WAVE_BSIZE]; in fill()
216 uchar * dst = s->lim; in fill()
222 s->eof = &s->lim[cnt]; in fill()
[all …]
/third_party/musl/libc-test/src/common/
Dsetrlim.c6 int t_setrlim(int r, long lim) in t_setrlim() argument
14 if (lim > rl.rlim_max) in t_setrlim()
16 if (lim == rl.rlim_max && lim == rl.rlim_cur) in t_setrlim()
18 rl.rlim_max = lim; in t_setrlim()
19 rl.rlim_cur = lim; in t_setrlim()
21 t_error("setrlimit(%d, %ld): %s\n", r, lim, strerror(errno)); in t_setrlim()
/third_party/boost/boost/geometry/srs/projections/impl/
Dpj_gridinfo.hpp112 ilp_t lim; // limits of conversion matrix member
120 std::swap(lim, r.lim); in swap()
202 std::size_t a_size = ct.lim.lam * ct.lim.phi; in pj_gridinfo_load_ctable()
233 std::size_t a_size = ct.lim.lam * ct.lim.phi; in pj_gridinfo_load_ctable2()
270 std::size_t const r_size = gi.ct.lim.lam * 2; in pj_gridinfo_load_ntv1()
276 gi.ct.cvs.resize(gi.ct.lim.lam * gi.ct.lim.phi); in pj_gridinfo_load_ntv1()
278 for (boost::int32_t row = 0; row < gi.ct.lim.phi; row++ ) in pj_gridinfo_load_ntv1()
292 for (boost::int32_t i = 0; i < gi.ct.lim.lam; i++ ) in pj_gridinfo_load_ntv1()
294 pj_ctable::flp_t & cvs = gi.ct.cvs[row * gi.ct.lim.lam + (gi.ct.lim.lam - i - 1)]; in pj_gridinfo_load_ntv1()
320 std::size_t const r_size = gi.ct.lim.lam * 4; in pj_gridinfo_load_ntv2()
[all …]
/third_party/libwebsockets/lib/roles/mqtt/
Dprimitives.c148 lws_mqtt_str_init(lws_mqtt_str_t *s, uint8_t *buf, uint16_t lim, char nf) in lws_mqtt_str_init() argument
153 s->limit = lim; in lws_mqtt_str_init()
159 lws_mqtt_str_create(uint16_t lim) in lws_mqtt_str_create() argument
161 lws_mqtt_str_t *s = lws_malloc(sizeof(*s) + lim + 1, __func__); in lws_mqtt_str_create()
169 s->limit = lim; in lws_mqtt_str_create()
177 lws_mqtt_str_create_init(uint8_t *buf, uint16_t len, uint16_t lim) in lws_mqtt_str_create_init() argument
181 if (!lim) in lws_mqtt_str_create_init()
182 lim = len; in lws_mqtt_str_create_init()
184 s = lws_mqtt_str_create(lim); in lws_mqtt_str_create_init()
199 lws_mqtt_str_create_cstr_dup(const char *buf, uint16_t lim) in lws_mqtt_str_create_cstr_dup() argument
[all …]
/third_party/musl/porting/liteos_m/kernel/src/internal/
Dintscan.c26 unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long lim) in __intscan() argument
85 y = lim; in __intscan()
86 if (lim&1) neg = 0; in __intscan()
90 if (y>=lim) { in __intscan()
91 if (!(lim&1) && !neg) { in __intscan()
93 return lim-1; in __intscan()
94 } else if (y>lim) { in __intscan()
96 return lim; in __intscan()
Dshgetc.c8 void __shlim(FILE *f, off_t lim) in __shlim() argument
10 f->shlim = lim; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
/third_party/musl/src/internal/
Dintscan.c26 unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long lim) in __intscan() argument
85 y = lim; in __intscan()
86 if (lim&1) neg = 0; in __intscan()
90 if (y>=lim) { in __intscan()
91 if (!(lim&1) && !neg) { in __intscan()
93 return lim-1; in __intscan()
94 } else if (y>lim) { in __intscan()
96 return lim; in __intscan()
Dshgetc.c8 void __shlim(FILE *f, off_t lim) in __shlim() argument
10 f->shlim = lim; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
/third_party/musl/porting/liteos_a/kernel/src/internal/
Dintscan.c26 unsigned long long __intscan(FILE *f, unsigned base, int pok, unsigned long long lim) in __intscan() argument
85 y = lim; in __intscan()
86 if (lim&1) neg = 0; in __intscan()
90 if (y>=lim) { in __intscan()
91 if (!(lim&1) && !neg) { in __intscan()
93 return lim-1; in __intscan()
94 } else if (y>lim) { in __intscan()
96 return lim; in __intscan()
Dshgetc.c8 void __shlim(FILE *f, off_t lim) in __shlim() argument
10 f->shlim = lim; in __shlim()
13 if (lim && f->rend - f->rpos > lim) in __shlim()
14 f->shend = f->rpos + lim; in __shlim()
/third_party/ltp/testcases/kernel/controllers/pids/
Dpids.sh152 lim=$((max + 2))
153 tst_res TINFO "limit the number of avalaible pid to $lim"
154 ROD echo $lim \> $testpath/pids.max
201 lim=$((max - 1))
202 ROD echo $lim \> $testpath/pids.max
222 lim=$((max / subcgroup_num))
232 start_pids_tasks2_path $testpath/child$i $lim
273 lim=$((max - 1))
274 ROD echo $lim \> $testpath/child/pids.max
296 lim=$((max - 1))
[all …]
/third_party/boost/boost/multiprecision/detail/functions/
Dconstants.hpp108 T lim; in calc_e() local
109 lim = ui_type(1); in calc_e()
110 eval_ldexp(lim, lim, digits); in calc_e()
125 } while (denom.compare(lim) <= 0); in calc_e()
167 T lim; in calc_pi() local
168 lim = ui_type(1); in calc_pi()
169 eval_ldexp(lim, lim, -(int)digits); in calc_pi()
206 if (result.compare(lim) <= 0) in calc_pi()
213 eval_ldexp(lim, lim, 1); in calc_pi()
Dpow.hpp113 T lim; in hyp0F0() local
114 eval_ldexp(lim, H0F0, 1 - tol); in hyp0F0()
115 if (eval_get_sign(lim) < 0) in hyp0F0()
116 lim.negate(); in hyp0F0()
133 if (lim.compare(x_pow_n_div_n_fact) > 0) in hyp0F0()
161 T lim; in hyp1F0() local
162 eval_ldexp(lim, H1F0, 1 - boost::multiprecision::detail::digits2<number<T, et_on> >::value()); in hyp1F0()
163 if (eval_get_sign(lim) < 0) in hyp1F0()
164 lim.negate(); in hyp1F0()
184 if (lim.compare(term) >= 0) in hyp1F0()
[all …]
/third_party/gettext/gettext-tools/libgrep/
Dm-fgrep.c105 const char *lim; in Fcompile() local
107 for (lim = beg; lim < pattern + pattern_size && *lim != '\n'; ++lim) in Fcompile()
109 if ((err = kwsincr (ckwset->kwset, beg, lim - beg)) != NULL) in Fcompile()
111 if (lim < pattern + pattern_size) in Fcompile()
112 ++lim; in Fcompile()
113 beg = lim; in Fcompile()
/third_party/icu/icu4c/source/i18n/
Dutf16collationiterator.h37 const UChar *s, const UChar *p, const UChar *lim) in UTF16CollationIterator() argument
39 start(s), pos(p), limit(lim) {} in UTF16CollationIterator()
51 void setText(const UChar *s, const UChar *lim) { in setText() argument
54 limit = lim; in setText()
88 const UChar *s, const UChar *p, const UChar *lim) in FCDUTF16CollationIterator() argument
89 : UTF16CollationIterator(data, numeric, s, p, lim), in FCDUTF16CollationIterator()
90 rawStart(s), segmentStart(p), segmentLimit(NULL), rawLimit(lim), in FCDUTF16CollationIterator()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dutf16collationiterator.h37 const UChar *s, const UChar *p, const UChar *lim) in UTF16CollationIterator() argument
39 start(s), pos(p), limit(lim) {} in UTF16CollationIterator()
51 void setText(const UChar *s, const UChar *lim) { in setText() argument
54 limit = lim; in setText()
88 const UChar *s, const UChar *p, const UChar *lim) in FCDUTF16CollationIterator() argument
89 : UTF16CollationIterator(data, numeric, s, p, lim), in FCDUTF16CollationIterator()
90 rawStart(s), segmentStart(p), segmentLimit(NULL), rawLimit(lim), in FCDUTF16CollationIterator()
/third_party/skia/third_party/externals/icu/source/i18n/
Dutf16collationiterator.h37 const UChar *s, const UChar *p, const UChar *lim) in UTF16CollationIterator() argument
39 start(s), pos(p), limit(lim) {} in UTF16CollationIterator()
51 void setText(const UChar *s, const UChar *lim) { in setText() argument
54 limit = lim; in setText()
88 const UChar *s, const UChar *p, const UChar *lim) in FCDUTF16CollationIterator() argument
89 : UTF16CollationIterator(data, numeric, s, p, lim), in FCDUTF16CollationIterator()
90 rawStart(s), segmentStart(p), segmentLimit(NULL), rawLimit(lim), in FCDUTF16CollationIterator()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java170 final long lim; field in IsValidUtf8TestUtil.Shard
173 public Shard(long index, long start, long lim, long expected) { in Shard() argument
174 assertTrue(start < lim); in Shard()
177 this.lim = lim; in Shard()
221 long lim = 1L << 32;
222 long increment = lim / numShards;
223 assertTrue(lim % numShards == 0);
253 ByteStringFactory factory, int numBytes, long expectedCount, long start, long lim) {
257 if (lim == -1) {
258 lim = 1L << (numBytes * 8);
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dutf16collationiterator.h37 const UChar *s, const UChar *p, const UChar *lim) in UTF16CollationIterator() argument
39 start(s), pos(p), limit(lim) {} in UTF16CollationIterator()
51 void setText(const UChar *s, const UChar *lim) { in setText() argument
54 limit = lim; in setText()
88 const UChar *s, const UChar *p, const UChar *lim) in FCDUTF16CollationIterator() argument
89 : UTF16CollationIterator(data, numeric, s, p, lim), in FCDUTF16CollationIterator()
90 rawStart(s), segmentStart(p), segmentLimit(NULL), rawLimit(lim), in FCDUTF16CollationIterator()
/third_party/boost/libs/math/minimax/
Df.cpp160 double lim = 1e-65; in f() local
161 if(fabs(x2 - root) < lim) in f()
169 static const mp_type a = boost::math::digamma(root - lim) / -lim; in f()
170 static const mp_type b = boost::math::digamma(root + lim) / lim; in f()
171 mp_type fract = (x2 - root + lim) / (2*lim); in f()
185 static mp_type lim = 1e-80; in f() local
186 static mp_type a = boost::math::expm1(-lim); in f()
187 static mp_type b = boost::math::expm1(lim); in f()
188 static mp_type l = (b-a) / (2 * lim); in f()
/third_party/ltp/testcases/kernel/mem/tunable/
Dovercommit_memory.c101 struct rlimit lim; in setup() local
124 SAFE_GETRLIMIT(RLIMIT_AS, &lim); in setup()
126 if (lim.rlim_cur != RLIM_INFINITY) { in setup()
127 lim.rlim_cur = RLIM_INFINITY; in setup()
128 lim.rlim_max = RLIM_INFINITY; in setup()
132 SAFE_SETRLIMIT(RLIMIT_AS, &lim); in setup()
/third_party/uboot/u-boot-2020.01/drivers/dfu/
Ddfu_mtd.c23 u64 off, lim, remaining; in mtd_block_op() local
37 lim = dfu->data.mtd.start + dfu->data.mtd.size; in mtd_block_op()
39 if (off >= lim) { in mtd_block_op()
40 printf("Limit reached 0x%llx\n", lim); in mtd_block_op()
45 if (off + *len >= lim) in mtd_block_op()
46 *len = lim - off; in mtd_block_op()
65 if (erase_op.addr + remaining > lim) { in mtd_block_op()
67 lim, off); in mtd_block_op()
102 if (off + remaining > lim) { in mtd_block_op()
104 lim, op == DFU_OP_READ ? "reading" : "writing", in mtd_block_op()

123456