Home
last modified time | relevance | path

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

12345678

/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_kdi.c80 mod_interp_data_t *mid = arg; in kmdb_kdi_mod_interp() local
83 kmdb_dpi_restore_fault_hdlr(mid->mid_oldpcb); in kmdb_kdi_mod_interp()
84 rc = mid->mid_usercb(mp, mid->mid_userarg); in kmdb_kdi_mod_interp()
85 mid->mid_oldpcb = kmdb_dpi_set_fault_hdlr(&mid->mid_pcb); in kmdb_kdi_mod_interp()
103 mod_interp_data_t mid; in kmdb_kdi_mod_iter() local
106 if (setjmp(mid.mid_pcb) != 0) { in kmdb_kdi_mod_iter()
108 kmdb_dpi_restore_fault_hdlr(mid.mid_oldpcb); in kmdb_kdi_mod_iter()
112 mid.mid_usercb = cb; in kmdb_kdi_mod_iter()
113 mid.mid_userarg = arg; in kmdb_kdi_mod_iter()
114 mid.mid_oldpcb = kmdb_dpi_set_fault_hdlr(&mid.mid_pcb); in kmdb_kdi_mod_iter()
[all …]
/illumos-gate/usr/src/lib/iconv_modules/common/
H A Dtab_lookup.c205 int low, high, mid; in bisearch() local
214 mid = (low + high) / 2; in bisearch()
216 if ( val < st->table[mid].left_code ) in bisearch()
217 high = mid - 1; in bisearch()
218 else if ( val > st->table[mid].left_code ) in bisearch()
219 low = mid + 1; in bisearch()
221 return mid; in bisearch()
223 if ( val < st->table[mid].right_code ) in bisearch()
224 high = mid - 1; in bisearch()
226 low = mid + 1; in bisearch()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcatgets.c44 int hi, lo, mid; in catgets() local
76 mid = (hi + lo) / 2; in catgets()
80 + _CAT_SET_HDR_SIZE * mid); in catgets()
85 mid = (hi + lo) / 2; in catgets()
90 + _CAT_MSG_HDR_SIZE * mid); in catgets()
113 lo = mid + 1; in catgets()
115 hi = mid - 1; in catgets()
122 lo = mid + 1; in catgets()
124 hi = mid - 1; in catgets()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrsearch.c44 char* mid; in strsearch() local
50 mid = lo + (((hi - lo) / siz) / 2) * siz; in strsearch()
51 …if (!(v = context ? (*comparf_c)(name, *((char**)mid), context) : (*comparf)(name, *((char**)mid))… in strsearch()
52 return (mid); in strsearch()
54 lo = mid + siz; in strsearch()
55 else hi = mid - siz; in strsearch()
H A Dstrpsearch.c57 register char* mid; in strpsearch() local
73 mid = lo + (sequential ? 0 : (((hi - lo) / siz) / 2) * siz); in strpsearch()
74 …if (!(v = c - MAP(m, *(s = *((unsigned char**)mid)))) || *s == '[' && !(v = c - MAP(m, *++s)) && (… in strpsearch()
95 return (void*)mid; in strpsearch()
99 …while ((mid -= siz) >= lo && (s = *((unsigned char**)mid)) && ((c == MAP(m, *s)) || *s == '[' && c… in strpsearch()
120 lo = mid + siz; in strpsearch()
122 hi = mid - siz; in strpsearch()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmacro.c77 #define NEXTMACROID(mid) ( \ argument
78 (mid < NEXTMACROID_L) ? (NextMIdTable[mid]) : \
79 ((mid < NEXTMACROID_H) ? NEXTMACROID_H : (mid + 1)))
85 #define NEXTMACROID(mid) ((mid) + 1) argument
130 MacroName[mid] = name;
612 int mid; local
657 mid = -1;
670 mid = bitidx(mbuf[0]);
679 mid = s->s_macro;
699 if (mid < 0 || mid > MAXMACROID)
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dkiconv.c994 if (mid <= 0 || mid > KICONV_MAX_MODULE_ID) in kiconv_module_ref_count()
1058 size_t mid; in kiconv_register_module() local
1075 for (mid = 1; mid <= KICONV_MAX_MODULE_ID; mid++) in kiconv_register_module()
1111 if (conv_list[j].mid == mid && in kiconv_register_module()
1139 size_t mid; in kiconv_unregister_module() local
1146 for (mid = 1; mid <= KICONV_MAX_MODULE_ID; mid++) in kiconv_unregister_module()
1169 if (conv_list[i].mid == mid) { in kiconv_unregister_module()
1225 mid = conv_list[i].mid; in check_and_load_conversions()
1284 mid = conv_list[kcd->id].mid; in kiconv_open()
1324 mid = conv_list[kcd->id].mid; in kiconv_close()
[all …]
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dmuldi3.c107 ulong_t high, mid, udiff, vdiff; in ___muldi3() local
152 mid = udiff * vdiff; in ___muldi3()
159 prod.ul[H] = high + (negmid ? -mid : mid) + low.ul[L] + in ___muldi3()
190 ulong_t u1, u0, v1, v0, udiff, vdiff, high, mid, low; in __lmulq() local
214 mid = udiff * vdiff; in __lmulq()
225 prodl -= LHUP(mid); in __lmulq()
226 prodh -= HHALF(mid) + (prodl > was); in __lmulq()
229 prodl += LHUP(mid); in __lmulq()
230 prodh += HHALF(mid) + (prodl < was); in __lmulq()
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dcpu.c156 int *mid; in display_cpus() local
160 mid = (int *)get_prop_val(find_prop(cpu, "upa-portid")); in display_cpus()
161 if (mid == NULL) { in display_cpus()
162 mid = (int *)get_prop_val(find_prop(cpu, "portid")); in display_cpus()
176 log_printf(" %2d ", *mid, 0); in display_cpus()
179 display_mid(*mid); in display_cpus()
238 display_mid(int mid) in display_mid() argument
240 log_printf(" %2d ", mid, 0); in display_mid()
/illumos-gate/usr/src/cmd/look/
H A Dlook.c38 long top,bot,mid; in main() local
88 mid = (top+bot)/2; in main()
89 fseek(dfile,mid,0); in main()
92 mid++; in main()
101 if(top<=mid) in main()
103 top = mid; in main()
107 bot = mid; in main()
/illumos-gate/usr/src/lib/iconv_modules/vi/common/
H A Dtcvn%UCS-2.c179 int mid = 0; in binsearch() local
184 mid = ((high - low)>>1) + low; in binsearch()
185 if (x < v[mid].base) in binsearch()
186 high = mid - 1; in binsearch()
187 else if (x > v[mid].base) in binsearch()
188 low = mid + 1; in binsearch()
191 return mid; in binsearch()
H A Dtcvn%viscii.c186 int mid = 0; in binsearch() local
191 mid = (low + high) / 2; in binsearch()
192 if (x < (unsigned short)v[mid].base) in binsearch()
193 high = mid - 1; in binsearch()
194 else if (x > (unsigned short)v[mid].base) in binsearch()
195 low = mid + 1; in binsearch()
198 return mid; in binsearch()
H A Dtcvn%UTF-8.c230 int mid = 0; in binsearch() local
235 mid = (low + high) / 2; in binsearch()
236 if (x < v[mid].base) in binsearch()
237 high = mid - 1; in binsearch()
238 else if (x > v[mid].base) in binsearch()
239 low = mid + 1; in binsearch()
242 return mid; in binsearch()
/illumos-gate/usr/src/lib/iconv_modules/zh/common/
H A Dzh_CN.euc%zh_TW-big5.c198 int low, high, mid; in binsearch() local
203 mid = (low + high) >> 1; in binsearch()
204 if (x < table[mid].key) in binsearch()
205 high = mid - 1; in binsearch()
206 else if (x > table[mid].key) in binsearch()
207 low = mid + 1; in binsearch()
209 return mid; in binsearch()
H A Dzh_HK.hkscs%zh_TW-big5p.c199 int low, high, mid; in binsearch() local
204 mid = (low + high) >> 1; in binsearch()
205 if (x < table[mid].key) in binsearch()
206 high = mid - 1; in binsearch()
207 else if (x > table[mid].key) in binsearch()
208 low = mid + 1; in binsearch()
210 return mid; in binsearch()
H A Dzh_TW-big5%zh_CN.gbk.c198 int low, high, mid; in binsearch() local
203 mid = (low + high) >> 1; in binsearch()
204 if (x < table[mid].key) in binsearch()
205 high = mid - 1; in binsearch()
206 else if (x > table[mid].key) in binsearch()
207 low = mid + 1; in binsearch()
209 return mid; in binsearch()
H A Dzh_TW-big5p%zh_CN.gbk.c198 int low, high, mid; in binsearch() local
203 mid = (low + high) >> 1; in binsearch()
204 if (x < table[mid].key) in binsearch()
205 high = mid - 1; in binsearch()
206 else if (x > table[mid].key) in binsearch()
207 low = mid + 1; in binsearch()
209 return mid; in binsearch()
H A Dzh_TW-big5p%zh_HK.hkscs.c197 int low, high, mid; in binsearch() local
202 mid = (low + high) >> 1; in binsearch()
203 if (x < table[mid].key) in binsearch()
204 high = mid - 1; in binsearch()
205 else if (x > table[mid].key) in binsearch()
206 low = mid + 1; in binsearch()
208 return mid; in binsearch()
H A Dzh_TW-big5%zh_CN.euc.c198 int low, high, mid; in binsearch() local
203 mid = (low + high) >> 1; in binsearch()
204 if (x < table[mid].key) in binsearch()
205 high = mid - 1; in binsearch()
206 else if (x > table[mid].key) in binsearch()
207 low = mid + 1; in binsearch()
209 return mid; in binsearch()
H A Dzh_HK.hkscs%zh_CN.gbk.c220 int low, high, mid; in binsearch() local
225 mid = (low + high) >> 1; in binsearch()
226 if (x < table[mid].key) in binsearch()
227 high = mid - 1; in binsearch()
228 else if (x > table[mid].key) in binsearch()
229 low = mid + 1; in binsearch()
231 return mid; in binsearch()
H A Dzh_TW-big5%zh_TW-euc.c346 int low, high, mid; in binsearch() local
351 mid = (low + high) / 2; in binsearch()
352 if (x < v[mid].key) in binsearch()
353 high = mid - 1; in binsearch()
354 else if (x > v[mid].key) in binsearch()
355 low = mid + 1; in binsearch()
357 return mid; in binsearch()
H A Dzh_CN.gbk%zh_TW-big5.c249 int low, high, mid; in binsearch() local
254 mid = (low + high) >> 1; in binsearch()
255 if (x < table[mid].key) in binsearch()
256 high = mid - 1; in binsearch()
257 else if (x > table[mid].key) in binsearch()
258 low = mid + 1; in binsearch()
260 return mid; in binsearch()
H A Dzh_CN.gbk%zh_TW-big5p.c231 int low, high, mid; in binsearch() local
236 mid = (low + high) >> 1; in binsearch()
237 if (x < table[mid].key) in binsearch()
238 high = mid - 1; in binsearch()
239 else if (x > table[mid].key) in binsearch()
240 low = mid + 1; in binsearch()
242 return mid; in binsearch()
H A Dzh_TW-big5p%UTF-8.c293 int low, high, mid; in binsearch() local
298 mid = (low + high) / 2; in binsearch()
299 if (x < v[mid].big5pcode) in binsearch()
300 high = mid - 1; in binsearch()
301 else if (x > v[mid].big5pcode) in binsearch()
302 low = mid + 1; in binsearch()
304 return mid; in binsearch()
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c48 static int mtype(int mid);
274 netname(int mid) in netname() argument
278 if (mid & 0200) in netname()
279 return(mlook(mid)); in netname()
367 nettype(int mid) in nettype() argument
371 if (mid & 0200) in nettype()
372 return(mtype(mid)); in nettype()
497 mlook(int mid) in mlook() argument
503 m = mid & 0177; in mlook()
517 mtype(int mid) in mtype() argument
[all …]

12345678