/illumos-gate/usr/src/boot/common/linenoise/ |
H A D | linenoise.c | 159 static void refreshLine(struct linenoiseState *l); 337 static void refreshSingleLine(struct linenoiseState *l) { in refreshSingleLine() argument 339 size_t plen = strlen(l->prompt); in refreshSingleLine() 340 char *buf = l->buf; in refreshSingleLine() 341 size_t len = l->len; in refreshSingleLine() 342 size_t pos = l->pos; in refreshSingleLine() 345 while((plen+pos) >= l->cols) { in refreshSingleLine() 350 while (plen+len > l->cols) { in refreshSingleLine() 359 abAppend(&ab,l->prompt,strlen(l->prompt)); in refreshSingleLine() 376 static void refreshMultiLine(struct linenoiseState *l) { in refreshMultiLine() argument [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/ |
H A D | fksmbfs_rwlock.c | 59 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument 62 mutex_enter(&l->lock); in smbfs_rw_enter_sig() 68 if (l->owner == curthread) { in smbfs_rw_enter_sig() 71 l->count--; in smbfs_rw_enter_sig() 79 while (l->count < 0 || l->waiters > 0) { in smbfs_rw_enter_sig() 82 (void) cv_wait_sig(&l->cv, &l->lock); in smbfs_rw_enter_sig() 84 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig() 86 ASSERT(l->count < INT_MAX); in smbfs_rw_enter_sig() 88 if ((l->count % 10000) == 9999) in smbfs_rw_enter_sig() 90 "rwlock @ %p\n", l->count, (void *)&l); in smbfs_rw_enter_sig() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_rwlock.c | 57 smbfs_rw_enter_sig(smbfs_rwlock_t *l, krw_t rw, int intr) in smbfs_rw_enter_sig() argument 60 mutex_enter(&l->lock); in smbfs_rw_enter_sig() 66 if (l->owner == curthread) { in smbfs_rw_enter_sig() 69 l->count--; in smbfs_rw_enter_sig() 77 while (l->count < 0 || l->waiters > 0) { in smbfs_rw_enter_sig() 83 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig() 86 mutex_exit(&l->lock); in smbfs_rw_enter_sig() 92 cv_wait(&l->cv, &l->lock); in smbfs_rw_enter_sig() 94 ASSERT(l->count < INT_MAX); in smbfs_rw_enter_sig() 96 if ((l->count % 10000) == 9999) in smbfs_rw_enter_sig() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/fp/ |
H A D | _Q_fcc.c | 49 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_feq() 50 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_feq() 65 return ((x->l.msw ^ y->l.msw | x->l.frac2 ^ y->l.frac2 | in _Q_feq() 66 x->l.frac3 ^ y->l.frac3 | x->l.frac4 ^ y->l.frac4) == 0); in _Q_feq() 80 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_fne() 81 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_fne() 96 return ((x->l.msw ^ y->l.msw | x->l.frac2 ^ y->l.frac2 | in _Q_fne() 97 x->l.frac3 ^ y->l.frac3 | x->l.frac4 ^ y->l.frac4) != 0); in _Q_fne() 123 xm = x->l.msw; in _Q_flt() 126 ym = y->l.msw; in _Q_flt() [all …]
|
H A D | _Q_qtou.c | 43 xm = x->l.msw & 0x7fffffff; in _Q_qtou() 49 if (x->l.msw < 0x401f0000) { in _Q_qtou() 51 (x->l.frac2 >> 17); in _Q_qtou() 52 if ((x->l.frac2 & 0x1ffff) | x->l.frac3 | x->l.frac4) { in _Q_qtou() 57 x->l.frac2 & 0xffff0000) { in _Q_qtou() 58 z.l.msw = xm & 0xffff; in _Q_qtou() 59 z.l.frac2 = x->l.frac2; in _Q_qtou() 60 z.l.frac3 = x->l.frac3; in _Q_qtou() 61 z.l.frac4 = x->l.frac4; in _Q_qtou() 62 } else if (x->l.frac2 & 0xffff || in _Q_qtou() [all …]
|
H A D | _Q_qtod.c | 43 xm = x->l.msw & 0x7fffffff; in _Q_qtod() 49 if (x->l.msw & 0x80000000) in _Q_qtod() 55 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtod() 56 x->l.frac4) { in _Q_qtod() 58 u.l.hi = (x->l.msw & 0x80000000) | 0x7ff80000; in _Q_qtod() 59 u.l.hi |= ((xm & 0x7fff) << 4) | in _Q_qtod() 60 (x->l.frac2 >> 28); in _Q_qtod() 61 u.l.lo = (x->l.frac2 << 4) | in _Q_qtod() 62 (x->l.frac3 >> 28); in _Q_qtod() 76 u.l.hi = (x->l.msw & 0x80000000) | 0x7ff00000; in _Q_qtod() [all …]
|
H A D | _Q_qtos.c | 41 unsigned int l; in _Q_qtos() member 46 xm = x->l.msw & 0x7fffffff; in _Q_qtos() 52 if (x->l.msw & 0x80000000) in _Q_qtos() 58 if ((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Q_qtos() 59 x->l.frac4) { in _Q_qtos() 61 u.l = (x->l.msw & 0x80000000) | 0x7fc00000; in _Q_qtos() 62 u.l |= ((xm & 0x7fff) << 7) | in _Q_qtos() 63 (x->l.frac2 >> 25); in _Q_qtos() 77 u.l = (x->l.msw & 0x80000000) | 0x7f800000; in _Q_qtos() 82 u.l = 0x7f800000; in _Q_qtos() [all …]
|
H A D | __quad_mag.c | 51 ex = (x->l.msw & 0x7fffffff) >> 16; in __quad_mag_add() 52 lx = x->l.msw & 0xffff; in __quad_mag_add() 58 ey = (y->l.msw & 0x7fffffff) >> 16; in __quad_mag_add() 59 ly = y->l.msw & 0xffff; in __quad_mag_add() 69 frac2 = x->l.frac2; in __quad_mag_add() 70 frac3 = x->l.frac3; in __quad_mag_add() 71 frac4 = x->l.frac4; in __quad_mag_add() 72 sticky = ly | y->l.frac2 | y->l.frac3 | y->l.frac4; in __quad_mag_add() 74 frac2 = y->l.frac2; in __quad_mag_add() 75 frac3 = y->l.frac3; in __quad_mag_add() [all …]
|
H A D | _Q_mul.c | 92 xm = x->l.msw & 0x7fffffff; in _Qp_mul() 93 ym = y->l.msw & 0x7fffffff; in _Qp_mul() 94 sign = (x->l.msw ^ y->l.msw) & ~0x7fffffff; in _Qp_mul() 102 if (!(y->l.msw & 0x8000)) { in _Qp_mul() 108 Z.l.msw |= 0x8000; in _Qp_mul() 114 } else if (QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) { in _Qp_mul() 120 Z.l.msw |= 0x8000; in _Qp_mul() 131 if (!(x->l.msw & 0x8000)) { in _Qp_mul() 137 Z.l.msw |= 0x8000; in _Qp_mul() 154 Z.l.msw = 0x7fffffff; in _Qp_mul() [all …]
|
H A D | _Q_div.c | 110 xm = x->l.msw & 0x7fffffff; in _Qp_div() 111 ym = y->l.msw & 0x7fffffff; in _Qp_div() 112 sign = (x->l.msw ^ y->l.msw) & ~0x7fffffff; in _Qp_div() 120 if (!(y->l.msw & 0x8000)) { in _Qp_div() 126 Z.l.msw |= 0x8000; in _Qp_div() 132 } else if (QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) { in _Qp_div() 138 Z.l.msw |= 0x8000; in _Qp_div() 149 if (!(x->l.msw & 0x8000)) { in _Qp_div() 155 Z.l.msw |= 0x8000; in _Qp_div() 172 Z.l.msw = 0x7fffffff; in _Qp_div() [all …]
|
H A D | _Q_sub.c | 55 xm = ox->l.msw & 0x7fffffff; in _Qp_sub() 56 ym = oy->l.msw & 0x7fffffff; in _Qp_sub() 57 if (ym > xm || ym == xm && (oy->l.frac2 > ox->l.frac2 || in _Qp_sub() 58 oy->l.frac2 == ox->l.frac2 && (oy->l.frac3 > ox->l.frac3 || in _Qp_sub() 59 oy->l.frac3 == ox->l.frac3 && oy->l.frac4 > ox->l.frac4))) { in _Qp_sub() 80 if ((ym & 0xffff) | y->l.frac2 | y->l.frac3 | in _Qp_sub() 81 y->l.frac4) { in _Qp_sub() 90 Z.l.msw |= 0x8000; in _Qp_sub() 101 if (!((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Qp_sub() 102 x->l.frac4)) { in _Qp_sub() [all …]
|
H A D | _Q_cmp.c | 43 if ((QUAD_ISNAN(*x) && !(x->l.msw & 0x8000)) || in _Q_cmp() 44 (QUAD_ISNAN(*y) && !(y->l.msw & 0x8000))) { in _Q_cmp() 59 xm = x->l.msw; in _Q_cmp() 62 ym = y->l.msw; in _Q_cmp() 74 if (x->l.frac2 > y->l.frac2) in _Q_cmp() 76 if (x->l.frac2 < y->l.frac2) in _Q_cmp() 78 if (x->l.frac3 > y->l.frac3) in _Q_cmp() 80 if (x->l.frac3 < y->l.frac3) in _Q_cmp() 82 if (x->l.frac4 > y->l.frac4) in _Q_cmp() 84 if (x->l.frac4 < y->l.frac4) in _Q_cmp() [all …]
|
H A D | _Q_add.c | 54 xm = ox->l.msw & 0x7fffffff; in _Qp_add() 55 ym = oy->l.msw & 0x7fffffff; in _Qp_add() 56 if (ym > xm || ym == xm && (oy->l.frac2 > ox->l.frac2 || in _Qp_add() 57 oy->l.frac2 == ox->l.frac2 && (oy->l.frac3 > ox->l.frac3 || in _Qp_add() 58 oy->l.frac3 == ox->l.frac3 && oy->l.frac4 > ox->l.frac4))) { in _Qp_add() 77 if ((ym & 0xffff) | y->l.frac2 | y->l.frac3 | in _Qp_add() 78 y->l.frac4) { in _Qp_add() 87 Z.l.msw |= 0x8000; in _Qp_add() 98 if (!((xm & 0xffff) | x->l.frac2 | x->l.frac3 | in _Qp_add() 99 x->l.frac4)) { in _Qp_add() [all …]
|
H A D | _Q_cmpe.c | 56 xm = x->l.msw; in _Q_cmpe() 59 ym = y->l.msw; in _Q_cmpe() 71 if (x->l.frac2 > y->l.frac2) in _Q_cmpe() 73 if (x->l.frac2 < y->l.frac2) in _Q_cmpe() 75 if (x->l.frac3 > y->l.frac3) in _Q_cmpe() 77 if (x->l.frac3 < y->l.frac3) in _Q_cmpe() 79 if (x->l.frac4 > y->l.frac4) in _Q_cmpe() 81 if (x->l.frac4 < y->l.frac4) in _Q_cmpe() 89 if (x->l.frac2 < y->l.frac2) in _Q_cmpe() 91 if (x->l.frac2 > y->l.frac2) in _Q_cmpe() [all …]
|
H A D | _Q_dtoq.c | 56 m = ((u.l.hi & 0x7ff00000) >> 4) + 0x3c000000; in _Qp_dtoq() 59 if ((u.l.hi & 0xfffff) | u.l.lo) { in _Qp_dtoq() 62 lhi = u.l.hi & 0xfffff; in _Qp_dtoq() 63 llo = u.l.lo; in _Qp_dtoq() 69 u.l.hi = (u.l.hi & 0x80000000) | lhi; 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() 87 u.l.hi |= 0x80000; in _Qp_dtoq() 90 Z.l.msw = m | (u.l.hi & 0x80000000) | ((u.l.hi & 0xffff0) >> 4); in _Qp_dtoq() 91 Z.l.frac2 = (u.l.hi << 28) | (u.l.lo >> 4); in _Qp_dtoq() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | rwstlock.c | 61 rwst_enter_common(rwstlock_t *l, krw_t rw, int flags) in rwst_enter_common() argument 67 mutex_enter(&l->rwst_lock); in rwst_enter_common() 69 while (RWST_WRITE_HELD(l) || in rwst_enter_common() 70 (rw != RW_READER_STARVEWRITER && RWST_WRITE_WANTED(l))) { in rwst_enter_common() 73 mutex_exit(&l->rwst_lock); in rwst_enter_common() 79 if (RWST_WRITE_HELD(l)) { in rwst_enter_common() 84 readers = l->rwst_count; in rwst_enter_common() 87 if (!RWST_READ_WAIT(l, flags)) { in rwst_enter_common() 88 mutex_exit(&l->rwst_lock); in rwst_enter_common() 92 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, l, sleep_time, rw, in rwst_enter_common() [all …]
|
/illumos-gate/usr/src/lib/libc/sparcv9/fp/ |
H A D | _Qp_qtoux.c | 39 xm = x->l.msw & 0x7fffffff; in _Qp_qtoux() 45 if (x->l.msw < 0x403f0000) { in _Qp_qtoux() 48 ((long) x->l.frac2 << 15) | (x->l.frac3 >> 17); in _Qp_qtoux() 49 if ((x->l.frac3 & 0x1ffff) | x->l.frac4) { in _Qp_qtoux() 54 x->l.frac2 & 0xffff0000) { in _Qp_qtoux() 55 z.l.msw = xm & 0xffff; in _Qp_qtoux() 56 z.l.frac2 = x->l.frac2; in _Qp_qtoux() 57 z.l.frac3 = x->l.frac3; in _Qp_qtoux() 58 z.l.frac4 = x->l.frac4; in _Qp_qtoux() 59 } else if (x->l.frac2 & 0xffff || in _Qp_qtoux() [all …]
|
/illumos-gate/usr/src/uts/common/sys/tsol/ |
H A D | label_macro.h | 108 #define _MTYPE(l, t) \ argument 109 (((_mac_label_impl_t *)(l))->id == (t)) 111 #define _MSETTYPE(l, t) \ argument 112 (((_mac_label_impl_t *)(l))->id = (t)) 114 #define _MGETTYPE(l) (((_mac_label_impl_t *)(l))->id) argument 143 #define LCLASS_SET(slp, l) ((slp)->_lclass.class_u.class_chunk = (l)) argument 148 #define LCLASS_SET(slp, l) \ argument 149 ((slp)->_lclass.class_u.class_ar[0] = (uint8_t)((l)>> 8), \ 150 (slp)->_lclass.class_u.class_ar[1] = (uint8_t)(l)) 159 #define ICLASS_SET(ilp, l) ((ilp)->_iclass.class_u.class_chunk = (l)) argument [all …]
|
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | hpet_acpi.h | 139 #define HPET_GCAP_CNTR_CLK_PERIOD(l) (l >> 32) argument 140 #define HPET_GCAP_VENDOR_ID(l) BITX(l, 31, 16) argument 141 #define HPET_GCAP_LEG_ROUTE_CAP(l) BITX(l, 15, 15) argument 142 #define HPET_GCAP_CNT_SIZE_CAP(l) BITX(l, 13, 13) argument 143 #define HPET_GCAP_NUM_TIM_CAP(l) BITX(l, 12, 8) argument 144 #define HPET_GCAP_REV_ID(l) BITX(l, 7, 0) argument 175 #define HPET_GCFR_LEG_RT_CNF_BITX(l) BITX(l, 1, 1) argument 176 #define HPET_GCFR_ENABLE_CNF_BITX(l) BITX(l, 0, 0) argument 181 #define HPET_GIS_T2_INT_STS(l) BITX(l, 2, 2) argument 182 #define HPET_GIS_T1_INT_STS(l) BITX(l, 1, 1) argument [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | rwstlock.h | 58 #define RWST_HELD(l) ((l)->rwst_count != 0) argument 59 #define RWST_READ_HELD(l) ((l)->rwst_count > 0) argument 60 #define RWST_WRITE_HELD(l) ((l)->rwst_count < 0) argument 61 #define RWST_WRITE_OWNER(l) \ argument 62 ((l)->rwst_count == (LONG_MIN | (intptr_t)curthread)) 63 #define RWST_OWNER(l) (RWST_WRITE_HELD(l) ? \ argument 64 ((struct _kthread *)((l)->rwst_count & ~LONG_MIN)) : NULL) 65 #define RWST_READ_WANTED(l) CV_HAS_WAITERS(&(l)->rwst_rcv) argument 66 #define RWST_WRITE_WANTED(l) CV_HAS_WAITERS(&(l)->rwst_wcv) argument 69 #define RWST_READ_WAIT(l, f) RWST_WAIT(&(l)->rwst_rcv, &(l)->rwst_lock, f) argument [all …]
|
/illumos-gate/usr/src/tools/smatch/src/Documentation/sphinx/ |
H A D | cdoc.py | 88 (n, l) = next(lines) 89 if not l.startswith('//\t'): 91 line += '\n' + l[3:] 103 (n, l) = next(lines) 104 line += ' ' + l.lstrip() 117 (n, l) = lines.memo() 121 m = re.match(r"^///\s+(.+)$", l) # /// ... 128 for (n, l) in lines: 130 if l.startswith('// '): 131 l = l[3:] ## strip leading '// ' [all …]
|
/illumos-gate/usr/src/stand/lib/fs/ufs/ |
H A D | lufsboot.c | 193 #define inslist(lh, l) if ((*(lh))) { \ argument 194 (*(lh))->l_prev->l_next = (l); \ 195 (l)->l_next = (*(lh)); \ 196 (l)->l_prev = (*(lh))->l_prev; \ 197 (*(lh))->l_prev = (l); \ 199 (l)->l_next = (l); \ 200 (l)->l_prev = (l); \ 201 (*(lh)) = l; \ 204 #define remlist(lh, l) \ argument 205 if ((l)->l_next == (l)) { \ [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zap_leaf.c | 44 static uint16_t *zap_leaf_rehash_entry(zap_leaf_t *l, uint16_t entry); 51 #define LEAF_HASH(l, h) \ argument 52 ((ZAP_LEAF_HASH_NUMENTRIES(l)-1) & \ 54 (64 - ZAP_LEAF_HASH_SHIFT(l) - zap_leaf_phys(l)->l_hdr.lh_prefix_len))) 56 #define LEAF_HASH_ENTPTR(l, h) (&zap_leaf_phys(l)->l_hash[LEAF_HASH(l, h)]) argument 58 extern inline zap_leaf_phys_t *zap_leaf_phys(zap_leaf_t *l); 110 zap_leaf_t l; in zap_leaf_byteswap() local 114 l.l_bs = highbit64(size) - 1; in zap_leaf_byteswap() 115 l.l_dbuf = &l_dbuf; in zap_leaf_byteswap() 125 for (int i = 0; i < ZAP_LEAF_HASH_NUMENTRIES(&l); i++) in zap_leaf_byteswap() [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | sqrtl.c | 59 } l; member 86 } l; member 133 unsigned int l[2]; in __q_unpack() member 140 ex = (int) ((x->l.msw & 0x7fffffff) >> 16); in __q_unpack() 141 lx = x->l.msw & 0xffff; in __q_unpack() 145 w[0] = x->l.frac2; in __q_unpack() 146 w[1] = x->l.frac3; in __q_unpack() 147 w[2] = x->l.frac4; in __q_unpack() 151 if (lx | (x->l.frac2 & 0xfffe0000)) in __q_unpack() 153 w[0] = x->l.frac2; in __q_unpack() [all …]
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_vadj.c | 116 vreopen(int p, int lineno, int l) in vreopen() argument 119 struct vlinfo *vp = &vlinfo[l]; in vreopen() 130 p = vglitchup(l, 0); in vreopen() 146 if (state == VISUAL && l == vcline && vp->vliny < 0) { in vreopen() 209 vglitchup(int l, int o) in vglitchup() argument 211 struct vlinfo *vp = &vlinfo[l]; in vglitchup() 217 if (l < vcnt - 1) { in vglitchup() 234 vinslin((vp+1)->vliny, need, l); in vglitchup() 250 vinslin(int p, int cnt, int l) in vinslin() argument 257 tfixnl(), fprintf(trace, "vinslin(%d, %d, %d)\n", p, cnt, l); in vinslin() [all …]
|