/freebsd-current/sys/libkern/ |
H A D | bsearch.c | 39 * divide the work in half by moving either left or right. If lim 40 * is odd, moving left simply involves halving lim: e.g., when lim 41 * is 5 we look at item 2, so we change lim to 2 so that we will 42 * look at items 0 & 1. If lim is even, the same applies. If lim 43 * is odd, moving right again involves halving lim, this time moving 44 * the base up one item past p: e.g., when lim is 5 we change base 45 * to item 3 and make lim 2 so that we will look at items 3 and 4. 46 * If lim i 56 size_t lim; local [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/lua_core/ |
H A D | tst.timeout.ksh | 35 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 D | tst.lib_table.lua | 62 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 [all...] |
/freebsd-current/lib/libc/locale/ |
H A D | runetype.c | 49 size_t lim; local 59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { 60 re = base + (lim >> 1); 68 lim--;
|
H A D | toupper.c | 49 size_t lim; local 59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { 60 re = base + (lim >> 1); 67 lim--;
|
H A D | tolower.c | 49 size_t lim; local 59 for (lim = rr->__nranges; lim != 0; lim >>= 1) { 60 re = base + (lim >> 1); 65 lim--;
|
H A D | nextwctype.c | 42 size_t lim; local 66 for (lim = rr->__nranges; lim != 0; lim >>= 1) { 67 re = base + (lim >> 1); 72 lim--;
|
/freebsd-current/lib/libc/stdlib/ |
H A D | bsearch.c | 47 * divide the work in half by moving either left or right. If lim 48 * is odd, moving left simply involves halving lim: e.g., when lim 49 * is 5 we look at item 2, so we change lim to 2 so that we will 50 * look at items 0 & 1. If lim is even, the same applies. If lim 51 * is odd, moving right again involves halving lim, this time moving 52 * the base up one item past p: e.g., when lim is 5 we change base 53 * to item 3 and make lim 2 so that we will look at items 3 and 4. 54 * If lim i 70 size_t lim; local [all...] |
/freebsd-current/lib/libc/string/ |
H A D | memset_s.c | 37 rsize_t lim; local 42 lim = n < smax ? n : smax; 53 while (lim > 0) 54 dst[--lim] = v;
|
/freebsd-current/lib/libc/xdr/ |
H A D | xdr_float.c | 98 struct sgl_limits *lim; local 108 for (i = 0, lim = sgl_limits; i < nitems(sgl_limits); 109 i++, lim++) { 110 if ((vs.mantissa2 == lim->s.mantissa2) && 111 (vs.exp == lim->s.exp) && 112 (vs.mantissa1 == lim->s.mantissa1)) { 113 is = lim->ieee; 131 for (i = 0, lim = sgl_limits; i < nitems(sgl_limits); 132 i++, lim++) { 133 if ((is.exp == lim [all...] |
/freebsd-current/lib/libc/net/ |
H A D | ip6opt.c | 43 static int ip6optlen(u_int8_t *opt, u_int8_t *lim); 242 u_int8_t *lim; local 262 lim = (u_int8_t *)ip6e + hdrlen; 266 if ((optlen = ip6optlen(*tptrp, lim)) == 0) 271 if (*tptrp >= lim) { /* there is no option */ 279 if (ip6optlen(*tptrp, lim) == 0) 298 u_int8_t *optp, *lim; local 318 lim = (u_int8_t *)ip6e + hdrlen; 322 if ((optlen = ip6optlen(*tptrp, lim)) == 0) 327 for (optp = *tptrp; optp < lim; opt 347 ip6optlen(u_int8_t *opt, u_int8_t *lim) argument 503 u_int8_t *optp, *lim; local 552 u_int8_t *optp, *lim; local [all...] |
/freebsd-current/usr.sbin/rtsold/ |
H A D | rtsock.c | 97 char *lim, *next; local 107 lim = msg + n; 108 for (next = msg; next < lim; next += len) { 110 if (lim - next < lenlim) 131 ret = (*rtsock_dispatch[idx].func)(s, rtm, lim); 140 rtsock_input_ifannounce(int s __unused, struct rt_msghdr *rtm, char *lim) argument 146 if ((char *)(ifan + 1) > lim)
|
/freebsd-current/lib/libc/db/btree/ |
H A D | bt_search.c | 63 indx_t base, idx, lim; local 74 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { 75 t->bt_cur.index = idx = base + (lim >> 1); 85 --lim;
|
/freebsd-current/sys/fs/fdescfs/ |
H A D | fdesc_vfsops.c | 186 int lim; local 200 lim = lim_cur(td, RLIMIT_NOFILE); 204 if (lim > limit) 205 lim = limit; 206 last = min(fdp->fd_nfiles, lim); 216 if (fdp->fd_nfiles < lim) 217 freefd += (lim - fdp->fd_nfiles); 226 sbp->f_files = lim + 1; /* Allow for "." */
|
/freebsd-current/contrib/netbsd-tests/include/sys/ |
H A D | t_types.c | 120 rlim_t lim; local 126 lim = 0; 132 ATF_CHECK((lim - 1) > 0);
|
/freebsd-current/contrib/expat/xmlwf/ |
H A D | codepage.c | 58 int j, lim; local 61 lim = info.LeadByte[i + 1]; 62 for (j = info.LeadByte[i]; j <= lim; j++)
|
/freebsd-current/sys/contrib/openzfs/module/nvpair/ |
H A D | nvpair_alloc_fixed.c | 60 uintptr_t lim = base + va_arg(valist, size_t); local 63 if (base == 0 || (uintptr_t)&nvb[1] > lim) 68 nvb->nvb_lim = lim;
|
/freebsd-current/sys/dev/netmap/ |
H A D | if_re_netmap.h | 77 u_int const lim = kring->nkr_num_slots - 1; local 109 if (nic_i == lim) /* mark end of ring */ 129 nm_i = nm_next(nm_i, lim); 130 nic_i = nm_next(nic_i, lim); 159 kring->nr_hwtail = nm_prev(netmap_idx_n2k(kring, nic_i), lim); 178 u_int const lim = kring->nkr_num_slots - 1; local 186 if (head > lim) 202 uint32_t stop_i = nm_prev(kring->nr_hwcur, lim); 223 nm_i = nm_next(nm_i, lim); 224 nic_i = nm_next(nic_i, lim); [all...] |
/freebsd-current/contrib/lua/src/ |
H A D | lmathlib.c | 527 ** first compute 'lim', the smallest Mersenne number not smaller than 528 ** 'n'. We then project 'ran' into the interval [0, lim]. If the result 537 lua_Unsigned lim = n; local 539 lim |= (lim >> 1); 540 lim |= (lim >> 2); 541 lim |= (lim >> 4); 542 lim | [all...] |
/freebsd-current/contrib/bearssl/src/codec/ |
H A D | pemenc.c | 72 int off, lim; local 115 lim = (flags & BR_PEM_LINE64) != 0 ? 16 : 19; 126 if (++ off == lim) {
|
/freebsd-current/contrib/ntp/libntp/ |
H A D | ntp_calgps.c | 207 int32_t lim = pivot->secs + shift; local 208 retv.days -= (retv.secs > lim || 209 (retv.secs == lim && retv.frac >= pivot->frac)); 211 int32_t lim = pivot->secs - shift; local 212 retv.days += (retv.secs < lim || 213 (retv.secs == lim && retv.frac < pivot->frac)); 540 int32_t lim = pivot->wsecs + shift; local 541 retv.weeks -= (retv.wsecs > lim || 542 (retv.wsecs == lim && retv.frac >= pivot->frac)); 544 int32_t lim local [all...] |
/freebsd-current/sbin/ipf/ipsend/ |
H A D | 44arp.c | 62 char *lim, *buf, *next; local 101 lim = buf + needed; 102 for (next = buf; next < lim; next += rtm->rtm_msglen)
|
/freebsd-current/usr.sbin/rtadvd/ |
H A D | if.c | 164 get_next_msg(char *buf, char *lim, int ifindex, size_t *lenp, int filter) argument 172 rtm < (struct rt_msghdr *)lim; 177 "(buf=%p lim=%p rtm=%p)", __func__, 178 buf, lim, rtm); 184 "(buf=%p lim=%p rtm=%p)", __func__, 185 buf, lim, rtm); 286 char *p, *lim; local 293 lim = (char *)sa + sa->sa_len; 294 return prefixlen(p, lim); 298 prefixlen(unsigned char *p, unsigned char *lim) argument 419 char *lim; local 617 get_next_msghdr(struct if_msghdr *ifm, struct if_msghdr *lim) argument [all...] |
/freebsd-current/sys/amd64/vmm/intel/ |
H A D | vmcs.c | 132 vmcs_seg_desc_encoding(int seg, uint32_t *base, uint32_t *lim, uint32_t *acc) argument 138 *lim = VMCS_GUEST_ES_LIMIT; 143 *lim = VMCS_GUEST_CS_LIMIT; 148 *lim = VMCS_GUEST_SS_LIMIT; 153 *lim = VMCS_GUEST_DS_LIMIT; 158 *lim = VMCS_GUEST_FS_LIMIT; 163 *lim = VMCS_GUEST_GS_LIMIT; 168 *lim = VMCS_GUEST_TR_LIMIT; 173 *lim = VMCS_GUEST_LDTR_LIMIT; 178 *lim [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_msgget.c | 202 int i, lim = 0; local 205 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0) 208 buf = calloc(lim + 1, sizeof(*buf)); 211 for (i = 0; i < lim; i++) { 234 for (i = 0; i < lim; i++) 240 atf_tc_fail("msgget(2) opened more than %d queues", lim);
|