Home
last modified time | relevance | path

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

1234567

/freebsd/lib/libc/xdr/
H A Dxdr_float.c98 struct sgl_limits *lim; in xdr_float() local
109 i++, lim++) { in xdr_float()
111 (vs.exp == lim->s.exp) && in xdr_float()
113 is = lim->ieee; in xdr_float()
132 i++, lim++) { in xdr_float()
135 *vsp = lim->s; in xdr_float()
200 struct dbl_limits *lim; in xdr_double()
224 i++, lim++) { in xdr_double()
230 id = lim->ieee; in xdr_double()
265 i++, lim++) { in xdr_double()
[all …]
/freebsd/lib/libc/net/
H A Dip6opt.c242 u_int8_t *lim; in inet6_option_next() local
262 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_next()
279 if (ip6optlen(*tptrp, lim) == 0) in inet6_option_next()
298 u_int8_t *optp, *lim; in inet6_option_find() local
318 lim = (u_int8_t *)ip6e + hdrlen; in inet6_option_find()
355 if (opt + 2 > lim) in ip6optlen()
359 if (opt + optlen <= lim) in ip6optlen()
503 u_int8_t *optp, *lim; in inet6_opt_next() local
523 while(optp < lim) { in inet6_opt_next()
552 u_int8_t *optp, *lim; in inet6_opt_find() local
[all …]
/freebsd/sys/libkern/
H A Dbsearch.c56 size_t lim; in bsearch() local
60 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch()
61 p = base + (lim >> 1) * size; in bsearch()
67 lim--; in bsearch()
/freebsd/lib/libc/locale/
H A Dtolower.c49 size_t lim; in ___tolower_l() local
59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___tolower_l()
60 re = base + (lim >> 1); in ___tolower_l()
65 lim--; in ___tolower_l()
H A Dtoupper.c49 size_t lim; in ___toupper_l() local
59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___toupper_l()
60 re = base + (lim >> 1); in ___toupper_l()
67 lim--; in ___toupper_l()
H A Drunetype.c49 size_t lim; in ___runetype_l() local
59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in ___runetype_l()
60 re = base + (lim >> 1); in ___runetype_l()
68 lim--; in ___runetype_l()
H A Dnextwctype.c42 size_t lim; in nextwctype_l() local
66 for (lim = rr->__nranges; lim != 0; lim >>= 1) { in nextwctype_l()
67 re = base + (lim >> 1); in nextwctype_l()
72 lim--; in nextwctype_l()
/freebsd/lib/libc/stdlib/
H A Dbsearch.c70 size_t lim; in bsearch_b() local
74 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch_b()
75 p = base + (lim >> 1) * size; in bsearch_b()
81 lim--; in bsearch_b()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/
H A Dtst.timeout.ksh35 typeset lim=$1
37 log_mustnot eval 'error=$(zfs program -t '$lim' $TESTPOOL $ZCP_ROOT/lua_core/tst.timeout.zcp 2>&1)'
40 log_must [ $instrs_run -ge $(( $lim - 100 )) ]
41 log_must [ $instrs_run -le $(( $lim + 100 )) ]
42 log_note "With limit $lim the program ended after $instrs_run instructions"
H A Dtst.lib_table.lua62 a = {}; lim = 2000
63 for i=1, lim do a[i]=i end
64 assert(select(lim, unpack(a)) == lim and select('#', unpack(a)) == lim)
68 assert(#x == lim and x[1] == 1 and x[lim] == lim)
69 x = {unpack(a, lim-2)}
70 assert(#x == 3 and x[1] == lim-2 and x[3] == lim)
/freebsd/usr.sbin/rtsold/
H A Drtsock.c97 char *lim, *next; in rtsock_input() local
107 lim = msg + n; in rtsock_input()
108 for (next = msg; next < lim; next += len) { in rtsock_input()
110 if (lim - next < lenlim) in rtsock_input()
131 ret = (*rtsock_dispatch[idx].func)(s, rtm, lim); in rtsock_input()
140 rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim) in rtsock_input_ifannounce() argument
146 if ((char *)(ifan + 1) > lim) in rtsock_input_ifannounce()
/freebsd/contrib/bearssl/src/x509/
H A Dasn1.t0167 : read8 ( lim -- lim x )
172 : read16be ( lim -- lim x )
176 : read16le ( lim -- lim x )
188 : skip-remaining ( lim -- lim )
271 : read-length ( lim -- lim length )
311 : read-length-skip ( lim -- lim )
394 : read-OID ( lim -- lim bool )
399 : read-UTF8 ( lim -- lim val )
445 : read-UTF16BE ( lim -- lim val )
458 : read-UTF16LE ( lim -- lim val )
[all …]
/freebsd/sys/fs/fdescfs/
H A Dfdesc_vfsops.c186 int lim; in fdesc_statfs() local
200 lim = lim_cur(td, RLIMIT_NOFILE); in fdesc_statfs()
204 if (lim > limit) in fdesc_statfs()
205 lim = limit; in fdesc_statfs()
206 last = min(fdp->fd_nfiles, lim); in fdesc_statfs()
216 if (fdp->fd_nfiles < lim) in fdesc_statfs()
217 freefd += (lim - fdp->fd_nfiles); in fdesc_statfs()
226 sbp->f_files = lim + 1; /* Allow for "." */ in fdesc_statfs()
/freebsd/sys/dev/netmap/
H A Dif_re_netmap.h77 u_int const lim = kring->nkr_num_slots - 1; in re_netmap_txsync() local
109 if (nic_i == lim) /* mark end of ring */ in re_netmap_txsync()
129 nm_i = nm_next(nm_i, lim); in re_netmap_txsync()
130 nic_i = nm_next(nic_i, lim); in re_netmap_txsync()
178 u_int const lim = kring->nkr_num_slots - 1; in re_netmap_rxsync() local
186 if (head > lim) in re_netmap_rxsync()
223 nm_i = nm_next(nm_i, lim); in re_netmap_rxsync()
224 nic_i = nm_next(nic_i, lim); in re_netmap_rxsync()
248 if (nic_i == lim) /* mark end of ring */ in re_netmap_rxsync()
263 nm_i = nm_next(nm_i, lim); in re_netmap_rxsync()
[all …]
H A Dnetmap_generic.c568 nm_i = nm_next(nm_i, lim); in generic_netmap_tx_clean()
570 kring->nr_hwtail = nm_prev(nm_i, lim); in generic_netmap_tx_clean()
580 u_int n = lim + 1; in ring_middle()
615 u_int lim = kring->nkr_num_slots - 1; in generic_set_tx_event() local
635 e = ring_middle(ntc, hwcur, lim); in generic_set_tx_event()
819 nm_i = nm_next(nm_i, lim); in generic_netmap_txsync()
943 if (head > lim) in generic_netmap_rxsync()
959 nm_i = nm_next(nm_i, lim); in generic_netmap_rxsync()
979 avail += lim + 1; in generic_netmap_rxsync()
1015 nm_i = nm_next(nm_i, lim); in generic_netmap_rxsync()
[all …]
H A Dif_vtnet_netmap.h65 u_int const lim = kring->nkr_num_slots - 1; in vtnet_netmap_txsync() local
83 for (; nm_i != head; nm_i = nm_next(nm_i, lim)) { in vtnet_netmap_txsync()
135 if (kring->nr_hwtail > lim) in vtnet_netmap_txsync()
136 kring->nr_hwtail -= lim + 1; in vtnet_netmap_txsync()
159 u_int const lim = kring->nkr_num_slots - 1; in vtnet_netmap_kring_refill() local
172 nm_i = nm_next(nm_i, lim), num--) { in vtnet_netmap_kring_refill()
251 u_int const lim = kring->nkr_num_slots - 1; in vtnet_netmap_rxsync() local
272 uint32_t hwtail_lim = nm_prev(kring->nr_hwcur, lim); in vtnet_netmap_rxsync()
312 nm_i = nm_next(nm_i, lim); in vtnet_netmap_rxsync()
/freebsd/lib/libc/string/
H A Dmemset_s.c37 rsize_t lim; in memset_s() local
42 lim = n < smax ? n : smax; in memset_s()
53 while (lim > 0) in memset_s()
54 dst[--lim] = v; in memset_s()
/freebsd/contrib/lua/src/
H A Dlmathlib.c537 lua_Unsigned lim = n; in project() local
539 lim |= (lim >> 1); in project()
540 lim |= (lim >> 2); in project()
541 lim |= (lim >> 4); in project()
542 lim |= (lim >> 8); in project()
543 lim |= (lim >> 16); in project()
545 lim |= (lim >> 32); /* integer type has more than 32 bits */ in project()
547 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */ in project()
548 && lim >= n /* not smaller than 'n', */ in project()
549 && (lim >> 1) < n); /* and it is the smallest one */ in project()
[all …]
/freebsd/usr.sbin/rtadvd/
H A Dif.c172 rtm < (struct rt_msghdr *)lim; in get_next_msg()
178 buf, lim, rtm); in get_next_msg()
185 buf, lim, rtm); in get_next_msg()
286 char *p, *lim; in get_prefixlen() local
293 lim = (char *)sa + sa->sa_len; in get_prefixlen()
294 return prefixlen(p, lim); in get_prefixlen()
302 for (masklen = 0; p < lim; p++) { in prefixlen()
419 char *lim; in update_ifinfo() local
459 lim = msg + len; in update_ifinfo()
466 __func__, ifm, lim, (char *)lim - (char *)ifm); in update_ifinfo()
[all …]
/freebsd/lib/libc/db/btree/
H A Dbt_search.c63 indx_t base, idx, lim; in __bt_search() local
74 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { in __bt_search()
75 t->bt_cur.index = idx = base + (lim >> 1); in __bt_search()
85 --lim; in __bt_search()
/freebsd/contrib/ntp/libntp/
H A Dntp_calgps.c207 int32_t lim = pivot->secs + shift; in _gpsntp_from_daytime() local
208 retv.days -= (retv.secs > lim || in _gpsntp_from_daytime()
209 (retv.secs == lim && retv.frac >= pivot->frac)); in _gpsntp_from_daytime()
211 int32_t lim = pivot->secs - shift; in _gpsntp_from_daytime() local
212 retv.days += (retv.secs < lim || in _gpsntp_from_daytime()
213 (retv.secs == lim && retv.frac < pivot->frac)); in _gpsntp_from_daytime()
540 int32_t lim = pivot->wsecs + shift; in _gpscal_from_weektime() local
541 retv.weeks -= (retv.wsecs > lim || in _gpscal_from_weektime()
544 int32_t lim = pivot->wsecs - shift; in _gpscal_from_weektime() local
545 retv.weeks += (retv.wsecs < lim || in _gpscal_from_weektime()
[all …]
/freebsd/sys/amd64/vmm/intel/
H A Dvmcs.c132 vmcs_seg_desc_encoding(int seg, uint32_t *base, uint32_t *lim, uint32_t *acc) in vmcs_seg_desc_encoding() argument
138 *lim = VMCS_GUEST_ES_LIMIT; in vmcs_seg_desc_encoding()
143 *lim = VMCS_GUEST_CS_LIMIT; in vmcs_seg_desc_encoding()
148 *lim = VMCS_GUEST_SS_LIMIT; in vmcs_seg_desc_encoding()
153 *lim = VMCS_GUEST_DS_LIMIT; in vmcs_seg_desc_encoding()
158 *lim = VMCS_GUEST_FS_LIMIT; in vmcs_seg_desc_encoding()
163 *lim = VMCS_GUEST_GS_LIMIT; in vmcs_seg_desc_encoding()
168 *lim = VMCS_GUEST_TR_LIMIT; in vmcs_seg_desc_encoding()
173 *lim = VMCS_GUEST_LDTR_LIMIT; in vmcs_seg_desc_encoding()
178 *lim = VMCS_GUEST_IDTR_LIMIT; in vmcs_seg_desc_encoding()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_msgget.c202 int i, lim = 0; in ATF_TC_BODY() local
205 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0) in ATF_TC_BODY()
208 buf = calloc(lim + 1, sizeof(*buf)); in ATF_TC_BODY()
211 for (i = 0; i < lim; i++) { in ATF_TC_BODY()
234 for (i = 0; i < lim; i++) in ATF_TC_BODY()
240 atf_tc_fail("msgget(2) opened more than %d queues", lim); in ATF_TC_BODY()
H A Dt_setrlimit.c84 int *buf, lim; in ATF_TC_BODY() local
92 for (i = lim = 0; i < __arraycount(rlimit); i++) { in ATF_TC_BODY()
109 lim = rlimit[i]; in ATF_TC_BODY()
130 if (lim != 0) in ATF_TC_BODY()
131 atf_tc_fail("failed to set limit (%d)", lim); in ATF_TC_BODY()
378 static const rlim_t lim = 12; in ATF_TC_BODY() local
387 res.rlim_cur = lim; in ATF_TC_BODY()
388 res.rlim_max = lim; in ATF_TC_BODY()
403 for (i = 0; i < (int)lim; i++) { in ATF_TC_BODY()
/freebsd/sbin/routed/
H A Dinput.c137 struct netinfo *n, *lim; in input() local
175 lim = (struct netinfo *)((char*)rip + cc); in input()
188 && n < lim && n->n_family == RIP_AF_AUTH) { in input()
244 if (n >= lim) { in input()
265 && !ck_passwd(aifp,rip,lim,FROM_NADDR,&use_auth)) in input()
439 if (++v12buf.n >= v12buf.lim) in input()
441 } while (++n < lim); in input()
551 if (n >= lim) { in input()
764 } while (++n < lim); in input()
935 void *lim, in ck_passwd() argument
[all …]

1234567