Home
last modified time | relevance | path

Searched refs:lo (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/common/unicode/
H A Duconv.c321 uint32_t lo; in uconv_u16tou32() local
378 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou32()
380 if (lo >= UCONV_U16_HI_MIN && lo <= UCONV_U16_HI_MAX) { in uconv_u16tou32()
383 hi = lo; in uconv_u16tou32()
385 } else if (lo >= UCONV_U16_LO_MIN && lo <= UCONV_U16_LO_MAX) { in uconv_u16tou32()
388 lo = (((hi - UCONV_U16_HI_MIN) * UCONV_U16_BIT_SHIFT + in uconv_u16tou32()
389 lo - UCONV_U16_LO_MIN) & UCONV_U16_BIT_MASK) in uconv_u16tou32()
399 u32s[u32l++] = (outendian) ? lo : BSWAP_32(lo); in uconv_u16tou32()
431 uint32_t lo; in uconv_u16tou8() local
457 lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l])); in uconv_u16tou8()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmachclock.h58 ldx [scr1 + %lo(native_stick_offset)], scr2; \
60 ldx [scr1 + %lo(native_stick_offset)], scr1; \
85 ldx [scr1 + %lo(native_stick_offset)], scr1; \
106 ldx [scr1 + %lo(native_tick_offset)], scr2; \
108 ldx [scr1 + %lo(native_tick_offset)], scr1; \
118 ldx [scr1 + %lo(native_tick_offset)], scr1; \
153 lduw [scr1 + %lo(use_stick)], scr1; \
158 ldx [scr1 + %lo(native_stick_offset)], scr1; \
162 ldx [scr1 + %lo(native_tick_offset)], scr1; \
170 ldx [scr1 + %lo(native_stick_offset)], scr2; \
[all …]
/illumos-gate/usr/src/lib/libc/sparc/fp/
H A D_Q_qtod.c61 u.l.lo = (x->l.frac2 << 4) | in _Q_qtod()
77 u.l.lo = 0; in _Q_qtod()
83 u.l.lo = 0; in _Q_qtod()
86 u.l.lo = 0xffffffff; in _Q_qtod()
104 u.l.lo = 0; in _Q_qtod()
109 u.l.lo = ((rm == FSR_RP)? 1 : 0); in _Q_qtod()
123 u.l.lo = (x->l.frac2 << 3) | (x->l.frac3 >> 29); in _Q_qtod()
128 sticky |= round | (u.l.lo & 0x7fffffff); in _Q_qtod()
129 round = u.l.lo & 0x80000000; in _Q_qtod()
130 u.l.lo = u.l.hi; in _Q_qtod()
[all …]
H A D_Q_dtoq.c59 if ((u.l.hi & 0xfffff) | u.l.lo) { in _Qp_dtoq()
63 llo = u.l.lo; in _Qp_dtoq()
70 u.l.lo = llo; in _Qp_dtoq()
77 if (((u.l.hi & 0x7ffff) | u.l.lo) && (u.l.hi & 0x80000) == 0) { in _Qp_dtoq()
91 Z.l.frac2 = (u.l.hi << 28) | (u.l.lo >> 4); in _Qp_dtoq()
92 Z.l.frac3 = u.l.lo << 28; in _Qp_dtoq()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_utils.h56 (x).lo = DMA_LO_LE((val))
58 #define HILO_GEN(hi, lo, type) ((((type)(hi)) << 32) + (lo)) argument
59 #define HILO_DMA(hi, lo) HILO_GEN(hi, lo, dma_addr_t) argument
60 #define HILO_64(hi, lo) HILO_GEN(hi, lo, u64) argument
61 #define HILO_DMA_REGPAIR(regpair) (HILO_DMA(regpair.hi, regpair.lo))
62 #define HILO_64_REGPAIR(regpair) (HILO_64(regpair.hi, regpair.lo))
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dwnoutref.c55 maxx, lo, hi; in wnoutrefresh() local
128 lo = (doall || *bch == _REDRAW || *bch < minx) ? minx : *bch; in wnoutrefresh()
135 if (ISCBIT(wc[lo])) { in wnoutrefresh()
136 for (x = lo - 1; x >= minx; --x) in wnoutrefresh()
140 for (x = lo + 1; x <= maxx; ++x) in wnoutrefresh()
146 lo = x; in wnoutrefresh()
151 for (x = hi; x >= lo; --x) in wnoutrefresh()
161 if (hi < lo) in wnoutrefresh()
166 if (ISMBIT(sc[lo + xorg])) in wnoutrefresh()
167 (void) _mbclrch(_virtscr, y + yorg, lo + xorg); in wnoutrefresh()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachclock.h39 jmp %g1 + %lo(cpu_clearticknpt); \
117 lduw [scr + %lo(hres_lock)], hrlock; /* load clock lock */ \
118 lduw [scr + %lo(nsec_scale)], nano; /* tick-to-ns factor */ \
120 ldx [scr + %lo(hres_last_tick)], nslt; \
121 ldn [scr + %lo(hrestime)], hrestsec; /* load hrestime.sec */\
122 add scr, %lo(hrestime), hrestnsec; \
127 ldx [scr + %lo(hrestime_adj)], adj; /* load hrestime_adj */ \
129 lduw [scr + %lo(hres_lock)], scr; /* load clock lock */ \
135 or nano, %lo(NANOSEC), nano;
142 lduw [scr + %lo(hres_lock)], hrlock; /* load clock lock */ \
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcatgets.c42 int hi, lo, mid; in catgets() local
67 lo = 0; in catgets()
73 while (hi >= lo) { in catgets()
74 mid = (hi + lo) / 2; in catgets()
80 lo = q->__first_msg_hdr; in catgets()
81 hi = lo + q->__nmsgs - 1; in catgets()
82 while (hi >= lo) { in catgets()
83 mid = (hi + lo) / 2; in catgets()
111 lo = mid + 1; in catgets()
120 lo = mid + 1; in catgets()
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dfpparts.h47 unsigned lo :32; member
54 unsigned lo :32; member
58 unsigned lo; member
87 unsigned lo :32; member
93 unsigned lo :32; member
100 unsigned lo :32; member
129 #define LOFRACTION(X) (((_dval *)&(X))->fparts.lo)
132 #define LOWORD(X) (((_dval *)&(X))->fwords.lo)
140 #define LOQNAN(X) ((((_dval *)&(X))->fwords.lo) = 0x0)
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrsearch.c42 char* lo = (char *)tab; in strsearch() local
43 char* hi = lo + (num - 1) * siz; in strsearch()
48 while (lo <= hi) in strsearch()
50 mid = lo + (((hi - lo) / siz) / 2) * siz; in strsearch()
54 lo = mid + siz; in strsearch()
H A Dstrpsearch.c55 register char* lo = (char*)tab; in strpsearch() local
56 register char* hi = lo + (num - 1) * siz; in strpsearch()
71 while (lo <= hi) in strpsearch()
73 mid = lo + (sequential ? 0 : (((hi - lo) / siz) / 2) * siz); 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()
/illumos-gate/usr/src/common/bzip2/
H A Dblocksort.c34 Int32 lo, in fallbackSimpleSort() argument
40 if (lo == hi) return; in fallbackSimpleSort()
42 if (hi - lo > 3) { in fallbackSimpleSort()
43 for ( i = hi-4; i >= lo; i-- ) { in fallbackSimpleSort()
52 for ( i = hi-1; i >= lo; i-- ) { in fallbackSimpleSort()
99 Int32 sp, lo, hi; in fallbackQSort3() local
113 fpop ( lo, hi ); in fallbackQSort3()
114 if (hi - lo < FALLBACK_QSORT_SMALL_THRESH) { in fallbackQSort3()
115 fallbackSimpleSort ( fmap, eclass, lo, hi ); in fallbackQSort3()
128 if (r3 == 0) med = eclass[fmap[lo]]; else in fallbackQSort3()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsid.c145 int64_t hi, lo, m; in ksidlist_has_sid() local
149 lo = 0; in ksidlist_has_sid()
153 for (; lo <= hi; lo++) { in ksidlist_has_sid()
154 if (rid == sids[lo].ks_rid && in ksidlist_has_sid()
155 strcmp(domain, ksid_getdomain(&sids[lo])) == 0) in ksidlist_has_sid()
163 m = (int64_t)((uint64_t)(lo + hi) >> 1); in ksidlist_has_sid()
170 lo = m + 1; in ksidlist_has_sid()
176 } while (lo <= hi); in ksidlist_has_sid()
184 int64_t hi, lo, m; in ksidlist_has_pid() local
188 lo = 0; in ksidlist_has_pid()
[all …]
/illumos-gate/usr/src/cmd/localedef/
H A Dctype.c263 _FileRuneEntry *lo = NULL; in dump_ctype() local
397 lo[rl.maplower_ext_nranges-1].max = wc; in dump_ctype()
401 lo = realloc(lo, in dump_ctype()
402 sizeof (*lo) * rl.maplower_ext_nranges); in dump_ctype()
403 if (lo == NULL) in dump_ctype()
405 lo[rl.maplower_ext_nranges - 1].min = wc; in dump_ctype()
406 lo[rl.maplower_ext_nranges - 1].max = wc; in dump_ctype()
407 lo[rl.maplower_ext_nranges - 1].map = ctn->tolower; in dump_ctype()
432 (wr_category(lo, sizeof (*lo) * rl.maplower_ext_nranges, f) == 0) && in dump_ctype()
442 free(lo); in dump_ctype()
/illumos-gate/usr/src/uts/sun4/vm/
H A Dvm_dep.c275 caddr_t hi, lo; in valid_va_range_aligned() local
282 lo = *basep; in valid_va_range_aligned()
283 hi = lo + *lenp; in valid_va_range_aligned()
287 if (hi < lo) { in valid_va_range_aligned()
288 *lenp = 0UL - (uintptr_t)lo - 1UL; in valid_va_range_aligned()
291 hi = lo + *lenp; in valid_va_range_aligned()
302 if (lo < hole_start) { in valid_va_range_aligned()
312 if (hole_start - lo >= tot_len) in valid_va_range_aligned()
315 lo = hole_end; in valid_va_range_aligned()
323 lo = hole_end; in valid_va_range_aligned()
[all …]
/illumos-gate/usr/src/cmd/modload/
H A Dplcysubr.c188 parse_minor_range(const char *range, minor_t *lo, minor_t *hi, char *type) in parse_minor_range() argument
201 *lo = tmp; in parse_minor_range()
209 if (*lo > *hi) in parse_minor_range()
232 minor_t lo, minor_t hi, char type) in put_minor_range() argument
239 put_minor_range(fp, NULL, devn, tail, lo, hi, 'b'); in put_minor_range()
240 put_minor_range(fp, NULL, devn, tail, lo, hi, 'c'); in put_minor_range()
241 } else if (lo == hi) { in put_minor_range()
242 (void) fprintf(fp, "%s:(%d)%c%s", devn, (int)lo, type, tail); in put_minor_range()
244 (void) fprintf(fp, "%s:(%d-%d)%c%s", devn, (int)lo, (int)hi, in put_minor_range()
348 minor_t lo, hi; in delete_one_entry() local
[all …]
/illumos-gate/usr/src/common/bignum/amd64/
H A Dbignum_amd64_asm.S257 movq %rax, 0(%rdi) / r[0] = lo(p)
268 movq %rax, 8(%rdi) / r[1] = lo(p)
279 movq %rax, 16(%rdi) / r[2] = lo(p)
290 movq %rax, 24(%rdi) / r[3] = lo(p)
301 movq %rax, 32(%rdi) / r[4] = lo(p)
312 movq %rax, 40(%rdi) / r[5] = lo(p)
323 movq %rax, 48(%rdi) / r[6] = lo(p)
332 movq %rax, 56(%rdi) / r[7] = lo(p)
350 movq %rax, 0(%rdi) / r[0] = lo(p)
362 movq %rax, 8(%rdi) / r[1] = lo(p)
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/lofs/
H A Dlofs.c214 lnode_t lo; in lnode() local
216 (void) mdb_vread(&lo, sizeof (lo), addr); in lnode()
217 return (lnode_format(addr, &lo, NULL)); in lnode()
230 lnode_t lo; in lnode2dev() local
237 (void) mdb_vread(&lo, sizeof (lo), addr); in lnode2dev()
238 (void) mdb_vread(&vno, sizeof (vno), (uintptr_t)lo.lo_vnode); in lnode2dev()
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dk_cexp.c120 double hi = 0.0L, lo = 0.0L, c, t; in __k_cexp() local
148 lo = ln2LO[xsb]; in __k_cexp()
155 lo = t * ln2LO[0]; in __k_cexp()
157 x = hi - lo; in __k_cexp()
170 t = one - ((lo - (x * c) / (2.0 - c)) - hi); in __k_cexp()
/illumos-gate/usr/src/lib/libm/common/C/
H A Dexpm1.c163 double y, hi, lo, c = 0.0L, t, e, hxs, hfx, r1; in expm1() local
202 lo = ln2_lo; in expm1()
207 lo = -ln2_lo; in expm1()
215 lo = t * ln2_lo; in expm1()
217 x = hi - lo; in expm1()
218 c = (hi - x) - lo; /* still at |x| > 0.5 ln2 */ in expm1()
H A Dlibm.h71 8: or %via,%lo(NAME(_GLOBAL_OFFSET_TABLE_)-(9b-.)),%via; \
80 8: or %via,%lo(NAME(_GLOBAL_OFFSET_TABLE_)-(9b-.)),%via; \
116 or %o1, %lo(.L_##x##1), %o1; \
129 add %o0,%lo(_GLOBAL_OFFSET_TABLE_-(1b-.)),%o0; \
130 add %o1,%lo(.L_##x##1),%o1; \
142 add %o0,%lo(_GLOBAL_OFFSET_TABLE_-(1b-.)),%o0; \
145 ldx [%o0+%lo(.L_##x##1)],%o0; \
/illumos-gate/usr/src/uts/sun4v/cpu/
H A Dcommon_asm.S116 or %i1, %lo(tick_write_delta_panic), %o0
289 lduw [%o1 + %lo(hres_lock)], %o2 ! Load lock value
292 ldn [%o1 + %lo(hrestime)], %g1 ! Seconds.
293 add %o1, %lo(hrestime), %o4
296 lduw [%o1 + %lo(hres_lock)], %o3 ! Reload lock value
367 ldstub [%l4 + %lo(hres_lock + HRES_LOCK_OFFSET)], %l5 ! try locking
370 ld [%l4 + %lo(nsec_scale)], %l5 ! delay: %l5 = scaling factor
371 ldub [%l4 + %lo(hres_lock + HRES_LOCK_OFFSET)], %l5
374 ldstub [%l4 + %lo(hres_lock + HRES_LOCK_OFFSET)], %l5
376 ldub [%l4 + %lo(hres_lock + HRES_LOCK_OFFSET)], %l5
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregdecomp.c101 sfprintf(sp, "\\%d", e->lo); in decomp()
130 if (!e->lo) in decomp()
132 else if (e->lo == 1) in decomp()
135 sfprintf(sp, "{%d,}", e->lo); in decomp()
138 sfprintf(sp, "{%d,%d}", e->lo, e->hi); in decomp()
139 else if (e->lo == 0) in decomp()
275 if (!e->lo) in decomp()
277 else if (e->lo == 1 && ismeta('+', type, 0, delimiter)) in decomp()
282 sfprintf(sp, "%d,", e->lo); in decomp()
286 else if (e->hi != 1 || e->lo == 0 && !ismeta('?', type, 0, delimiter)) in decomp()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Dexp.c126 double z,hi,lo,c; variable
142 x=hi-(lo=k*ln2lo);
147 return scalb(1.0+(hi-(lo-(x*c)/(2.0-c))),k);
173 double z,hi,lo; local
189 x= hi - (lo = k*ln2lo-c);
195 return scalb(1.+(hi-(lo - c)), k);
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_util.c243 uint8_t tmp, lo; in ipmi_decode_string() local
283 lo = BITX(*(data+j++), 7, 6); in ipmi_decode_string()
285 tmp = (tmp << 2) | lo; in ipmi_decode_string()
288 lo = BITX(*(data+j++), 7, 4); in ipmi_decode_string()
290 tmp = (tmp << 4) | lo; in ipmi_decode_string()
305 lo = BITX(*(data+j++), 7, 6); in ipmi_decode_string()
307 tmp = (tmp << 2) | lo; in ipmi_decode_string()

12345678910>>...13