Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 134) sorted by relevance

123456

/freebsd/lib/libc/quad/
H A Dmuldi3.c101 u_long high, mid, udiff, vdiff; in __muldi3() local
146 mid = udiff * vdiff; in __muldi3()
153 prod.ul[H] = high + (negmid ? -mid : mid) + low.ul[L] + in __muldi3()
184 u_long u1, u0, v1, v0, udiff, vdiff, high, mid, low; in __lmulq() local
208 mid = udiff * vdiff; in __lmulq()
219 prodl -= LHUP(mid); in __lmulq()
220 prodh -= HHALF(mid) + (prodl > was); in __lmulq()
223 prodl += LHUP(mid); in __lmulq()
224 prodh += HHALF(mid) + (prodl < was); in __lmulq()
/freebsd/sys/libkern/arm/
H A Dmuldi3.c104 u_int high, mid, udiff, vdiff; in __muldi3() local
149 mid = udiff * vdiff; in __muldi3()
156 prod.ul[H] = high + (negmid ? -mid : mid) + low.ul[L] + in __muldi3()
187 u_int u1, u0, v1, v0, udiff, vdiff, high, mid, low; in __lmulq() local
211 mid = udiff * vdiff; in __lmulq()
222 prodl -= LHUP(mid); in __lmulq()
223 prodh -= HHALF(mid) + (prodl > was); in __lmulq()
226 prodl += LHUP(mid); in __lmulq()
227 prodh += HHALF(mid) + (prodl < was); in __lmulq()
/freebsd/contrib/sendmail/src/
H A Dmacro.c75 #define NEXTMACROID(mid) ( \ argument
76 (mid < NEXTMACROID_L) ? (NextMIdTable[mid]) : \
77 ((mid < NEXTMACROID_H) ? NEXTMACROID_H : (mid + 1)))
83 #define NEXTMACROID(mid) ((mid) + 1) argument
125 #define MACBINDING(name, mid) \ argument
126 stab(name, ST_MACRO, ST_ENTER)->s_macro = mid; \
127 MacroName[mid] = name;
649 int mid; local
694 mid = -1;
707 mid = bitidx(mbuf[0]);
[all …]
/freebsd/lib/libutil/
H A Dkld.c44 int fid, mid; in kld_isloaded() local
59 for (mid = kldfirstmod(fid); mid > 0; mid = modfnext(mid)) { in kld_isloaded()
61 if (modstat(mid, &mstat) != 0) in kld_isloaded()
/freebsd/sys/teken/
H A Dteken_wcwidth.h23 int mid; in bisearch() local
28 mid = (min + max) / 2; in bisearch()
29 if (ucs > table[mid].last) in bisearch()
30 min = mid + 1; in bisearch()
31 else if (ucs < table[mid].first) in bisearch()
32 max = mid - 1; in bisearch()
/freebsd/contrib/libexecinfo/
H A Dsymtab.c186 size_t mid = ns / 2; in symtab_find() local
197 if (s[mid].st_value < me) in symtab_find()
198 lo = mid; in symtab_find()
199 else if (s[mid].st_value > me) in symtab_find()
200 hi = mid; in symtab_find()
204 mid = lo; in symtab_find()
207 mid = (hi + lo) / 2; in symtab_find()
210 sd = me - s[mid].st_value; in symtab_find()
212 dli->dli_saddr = (void *)s[mid].st_value; in symtab_find()
213 dli->dli_sname = s[mid].st_name; in symtab_find()
/freebsd/contrib/arm-optimized-routines/math/tools/
H A Dtgamma128_gen.jl102 mid = (lo + hi) / 2
103 if mid == lo || mid == hi
104 max_x = mid
107 if SpecialFunctions.logabsgamma(mid)[1] < 16384 * log(BigFloat(2))
108 lo = mid
110 hi = mid
150 mid = (lo + hi) / 2
151 if mid == lo || mid == hi
152 min_x = mid
155 if SpecialFunctions.digamma(mid) < 0
[all …]
/freebsd/contrib/libxo/libxo/
H A Dxo_wcwidth.h74 int mid; in xo_bisearch() local
79 mid = (min + max) / 2; in xo_bisearch()
80 if (ucs > table[mid].last) in xo_bisearch()
81 min = mid + 1; in xo_bisearch()
82 else if (ucs < table[mid].first) in xo_bisearch()
83 max = mid - 1; in xo_bisearch()
/freebsd/contrib/ncurses/ncurses/
H A Dwcwidth.h82 int mid; in bisearch() local
87 mid = (min + max) / 2; in bisearch()
88 if (ucs > table[mid].last) in bisearch()
89 min = mid + 1; in bisearch()
90 else if (ucs < table[mid].first) in bisearch()
91 max = mid - 1; in bisearch()
/freebsd/sys/dev/vt/
H A Dvt_font.c50 int min, mid, max; in vtfont_bisearch() local
70 mid = (min + max) / 2; in vtfont_bisearch()
71 if (src < map[mid].vfm_src) in vtfont_bisearch()
72 max = mid - 1; in vtfont_bisearch()
73 else if (src > map[mid].vfm_src + map[mid].vfm_len) in vtfont_bisearch()
74 min = mid + 1; in vtfont_bisearch()
76 return (src - map[mid].vfm_src + map[mid].vfm_dst); in vtfont_bisearch()
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-cred.c31 unsigned int left, right, mid; in cr_groups_search() local
40 mid = (left + right) / 2; in cr_groups_search()
42 KGID_TO_SGID(GROUP_AT(group_info, mid)); in cr_groups_search()
45 left = mid + 1; in cr_groups_search()
47 right = mid; in cr_groups_search()
/freebsd/sys/vm/
H A Dvm_phys.h114 u_int hi, lo, mid; in vm_phys_lookup_segind() local
123 mid = lo + (hi - lo) / 2; in vm_phys_lookup_segind()
124 if (vm_phys_segs[mid].end <= pa) in vm_phys_lookup_segind()
125 lo = mid + 1; in vm_phys_lookup_segind()
127 hi = mid; in vm_phys_lookup_segind()
/freebsd/crypto/openssl/util/
H A Dcheck-format.pl1018 my ($head, $mid, $tail) = ($1, $3, $4);
1019 $keyword_opening_brace = $mid if $mid ne "=";
1021 push @in_if_hanging_offsets, $hanging_offset if $mid eq "if";
1029 if ($mid eq "while" && @in_do_hanging_offsets != 0) {
1037 …if (my ($head, $mid, $tail) = m/(^|^.*\W)(else|do)(\W.*|$)$/) { # last else/do, where 'do' is pref…
1039 report("code before '$mid'") if $code_before;
1040 …report("code after '$mid'" ) if $tail =~ m/[^\s\@{]/# trailing non-whitespace non-comment non-'{' …
1041 … && !($mid eq "else" && $tail =~ m/[\s@]*if(\W|$)/);
1042 if ($mid eq "do") { # workarounds for code before 'do'
1051 push @in_do_hanging_offsets, $hanging_offset if $mid eq "do";
[all …]
/freebsd/sys/netinet/
H A Dsctp_indata.c136 uint32_t mid, uint8_t flags, in sctp_build_readq_entry() argument
153 read_queue_e->mid = mid; in sctp_build_readq_entry()
370 if (SCTP_MID_GT(asoc->idata_supported, at->mid, control->mid)) { in sctp_place_control_in_stream()
382 } else if (SCTP_MID_EQ(asoc->idata_supported, at->mid, control->mid)) { in sctp_place_control_in_stream()
428 chk->rec.data.fsn, chk->rec.data.mid); in sctp_abort_in_reasm()
437 (uint16_t)chk->rec.data.mid); in sctp_abort_in_reasm()
511 if (SCTP_MID_GT((asoc->idata_supported), strm->last_mid_delivered, control->mid)) { in sctp_queue_data_to_stream()
514 strm->last_mid_delivered, control->mid); in sctp_queue_data_to_stream()
523 control->sinfo_stream, control->mid); in sctp_queue_data_to_stream()
529 (uint16_t)control->mid); in sctp_queue_data_to_stream()
[all …]
H A Dsctp_indata.h45 uint32_t mid, uint8_t flags,
48 #define sctp_build_readq_entry_mac(_ctl, in_it, context, net, tsn, ppid, sid, flags, dm, tfsn, mid)… argument
55 (_ctl)->mid = mid; \
/freebsd/sys/dev/sound/midi/
H A Dmpu401.c75 struct snd_midi *mid; member
147 midi_in(m->mid, b, i); in mpu401_intr()
150 if (midi_out(m->mid, b, 1)) { in mpu401_intr()
193 m->mid = midi_init(&mpu401_class, 0, 0, m); in mpu401_init()
194 if (!m->mid) in mpu401_init()
210 retval = midi_uninit(m->mid); in mpu401_uninit()
/freebsd/contrib/llvm-project/lld/COFF/
H A DICF.cpp118 size_t mid = bound - chunks.begin(); in segregate() local
122 for (size_t i = begin; i < mid; ++i) in segregate()
123 chunks[i]->eqClass[(cnt + 1) % 2] = mid; in segregate()
126 if (mid != end) in segregate()
129 begin = mid; in segregate()
222 size_t mid = findBoundary(begin, end); in forEachClassRange() local
223 fn(begin, mid); in forEachClassRange()
224 begin = mid; in forEachClassRange()
/freebsd/stand/i386/libi386/
H A Dvidconsole.c284 int min, mid, max; in vga_get_cp437() local
294 mid = (min + max) / 2; in vga_get_cp437()
295 if (c < cp437table[mid].unicode_base) in vga_get_cp437()
296 max = mid - 1; in vga_get_cp437()
297 else if (c > cp437table[mid].unicode_base + in vga_get_cp437()
298 cp437table[mid].length) in vga_get_cp437()
299 min = mid + 1; in vga_get_cp437()
301 return (c - cp437table[mid].unicode_base + in vga_get_cp437()
302 cp437table[mid].cp437_base); in vga_get_cp437()
758 int min, mid, max; in vga_cp437_to_uni() local
[all …]
/freebsd/contrib/llvm-project/lldb/source/Symbol/
H A DCompactUnwindInfo.cpp394 uint32_t mid = (low + high) / 2; in GetLSDAForFunctionOffset() local
395 offset_t offset = first_entry + (mid * 8); in GetLSDAForFunctionOffset()
403 low = mid + 1; in GetLSDAForFunctionOffset()
405 high = mid; in GetLSDAForFunctionOffset()
425 uint32_t mid = (low + high) / 2; in BinarySearchRegularSecondPage() local
426 offset_t offset = first_entry + (mid * 8); in BinarySearchRegularSecondPage()
430 if (mid < last) { in BinarySearchRegularSecondPage()
431 offset = first_entry + ((mid + 1) * 8); in BinarySearchRegularSecondPage()
435 if (mid == last || (next_func_offset > function_offset)) { in BinarySearchRegularSecondPage()
438 if (mid != last && entry_func_end_offset) in BinarySearchRegularSecondPage()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_indirect_mapping.c191 uint64_t mid; in vdev_indirect_mapping_entry_for_offset_impl() local
195 mid = base + ((last - base) >> 1); in vdev_indirect_mapping_entry_for_offset_impl()
198 &vim->vim_entries[mid]); in vdev_indirect_mapping_entry_for_offset_impl()
201 entry = &vim->vim_entries[mid]; in vdev_indirect_mapping_entry_for_offset_impl()
204 last = mid - 1; in vdev_indirect_mapping_entry_for_offset_impl()
206 base = mid + 1; in vdev_indirect_mapping_entry_for_offset_impl()
212 ASSERT(mid == base || mid == last); in vdev_indirect_mapping_entry_for_offset_impl()
230 index = mid; in vdev_indirect_mapping_entry_for_offset_impl()
232 index = mid + 1; in vdev_indirect_mapping_entry_for_offset_impl()
/freebsd/cddl/contrib/opensolaris/cmd/lockstat/
H A Dsym.c251 int mid; in addr_to_sym() local
255 mid = (lo + hi) / 2; in addr_to_sym()
256 if (addr >= symbol_table[mid].addr) { in addr_to_sym()
257 lo = mid; in addr_to_sym()
259 hi = mid; in addr_to_sym()
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py175 mid = low + ((high - low) // 2)
176 pair = self.avail[mid]
179 high = mid - 1
182 low = mid + 1
185 return mid, pair
/freebsd/sys/sys/
H A Dimgact_aout.h43 #define N_SETMAGIC(ex,mag,mid,flag) \ argument
45 (((mid) & 0x03ff) << 16) | \
54 #define N_SETMAGIC_NET(ex,mag,mid,flag) \ argument
55 ( (ex).a_midmag = htonl( (((flag)&0x3f)<<26) | (((mid)&0x03ff)<<16) \
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/json/
H A Dtst.general.d.out171 in |{ "top": { "mid" : { "legs": "feet" }, "number": 9, "array":[0,1,{"a":true,"bb":[1,2,false,{"…
173 out |{ "mid" : { "legs": "feet" }, "number": 9, "array":[0,1,{"a":true,"bb":[1,2,false,{"x":"yz"}]…
176 sel |top.mid|
180 sel |top.mid.legs|
182 sel |top.mid.number|
184 sel |top.mid.array|
/freebsd/tests/sys/cddl/zfs/tests/acl/nontrivial/
H A Dzfs_acl_chmod_rwx_001_pos.ksh59 typeset -i trival_count=6 head=0 mid end
60 ((mid = RANDOM % $trival_count))
64 nums="$head $mid $end"

123456