Searched refs:shift (Results 1 - 25 of 199) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/
H A Dtst.quantmany.d31 int64_t val, shift;
36 val = -(1 << shift);
37 shift++;
41 /shift == 32/
49 val = (1 << shift);
54 @[shift] = quantize(val, val);
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dashldi3.c41 * Shift a (signed) quad value left (arithmetic shift left).
42 * This is the same as logical shift left!
45 ___ashldi3(longlong_t a, qshift_t shift) argument
50 if (shift >= LONG_BITS) {
51 aa.ul[H] = shift >= QUAD_BITS ? 0 :
52 aa.ul[L] << (shift - LONG_BITS);
54 } else if (shift > 0) {
55 aa.ul[H] = (aa.ul[H] << shift) |
56 (aa.ul[L] >> (LONG_BITS - shift));
57 aa.ul[L] <<= shift;
[all...]
H A Dashrdi3.c41 * Shift a (signed) quad value right (arithmetic shift right).
44 ___ashrdi3(longlong_t a, qshift_t shift) argument
49 if (shift >= LONG_BITS) {
53 * Smear bits rightward using the machine's right-shift
56 * LONG_BITS is undefined, so we shift (LONG_BITS-1),
60 aa.ul[L] = shift >= QUAD_BITS ? s :
61 aa.sl[H] >> (shift - LONG_BITS);
63 } else if (shift > 0) {
64 aa.ul[L] = (aa.ul[L] >> shift) |
65 (aa.ul[H] << (LONG_BITS - shift));
[all...]
H A Dlshrdi3.c41 * Shift an (unsigned) quad value right (logical shift right).
44 ___lshrdi3(longlong_t a, qshift_t shift) argument
49 if (shift >= LONG_BITS) {
50 aa.ul[L] = shift >= QUAD_BITS ? 0 :
51 aa.ul[H] >> (shift - LONG_BITS);
53 } else if (shift > 0) {
54 aa.ul[L] = (aa.ul[L] >> shift) |
55 (aa.ul[H] << (LONG_BITS - shift));
56 aa.ul[H] >>= shift;
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dshift-special.c1 long shift(long a, short b);
2 long shift(long a, short b) function
11 * check-name: shift-special
/illumos-gate/usr/src/cmd/loadkeys/
H A Ddumpkeys.c36 SM_INVALID, /* this shift mask is invalid for this keyboard */
37 SM_NORMAL, /* "normal", valid shift mask */
38 SM_NUMLOCK, /* "Num Lock" shift mask */
39 SM_UP /* "Up" shift mask */
51 { "shift", SHIFTMASK, SM_NORMAL },
70 register int shift; local
88 * See which shift masks are valid for this keyboard.
90 * shift mask; if the "ioctl" fails, we assume it's because the shift
93 for (shift
[all...]
/illumos-gate/usr/src/uts/common/vm/
H A Dvm_rm.c92 int shift = 16 - PAGESHIFT; local
95 if (shift < 0) {
96 num >>= (-shift);
97 shift = 0;
99 while (shift > 0 && (num & 0x80000000) == 0) {
100 shift--;
103 if (shift > 0)
104 total >>= shift; local
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_leb.c52 Dwarf_Sword shift; local
57 word_number is assumed big enough that the shift has a defined
91 the shift for the shift to have a defined result. */
93 shift = 0;
97 number |= ((Dwarf_Unsigned) (byte & 0x7f)) << shift;
104 shift += 7;
122 Dwarf_Sword shift = 0; local
131 number |= ((Dwarf_Signed) ((byte & 0x7f))) << shift;
132 shift
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dbitops.h64 #define BF32_GET_SB(x, low, len, shift, bias) \
65 ((BF32_GET(x, low, len) + (bias)) << (shift))
66 #define BF64_GET_SB(x, low, len, shift, bias) \
67 ((BF64_GET(x, low, len) + (bias)) << (shift))
75 #define BF32_SET_SB(x, low, len, shift, bias, val) do { \
76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \
77 ASSERT3S((val) >> (shift), >=, bias); \
78 BF32_SET(x, low, len, ((val) >> (shift)) - (bias)); \
80 #define BF64_SET_SB(x, low, len, shift, bias, val) do { \
81 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !
[all...]
/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c256 int shift = 0; local
275 buf[bp] |= toxdigit(*end) << shift;
277 if (shift > 5) {
278 buf[--bp] = (todigit(*end) >> (8 - shift))
279 & MASK(shift-5);
281 if ((shift = (shift + 3) % 8) == 0)
285 if ((shift = (shift) ? 0 : 4) == 0)
295 if (!shift)
404 int i, shift; local
[all...]
/illumos-gate/usr/src/lib/libc/sparc/gen/
H A Dlsign.s47 srl %o0,31,%o0 ! shift letf logical to isolate sign
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dcityhash.c35 rotate(uint64_t val, int shift) argument
38 return (shift == 0 ? val : (val >> shift) | (val << (64 - shift)));
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dstoa.c155 int shift = 0; local
177 buf[bp] |= toxdigit(*end) << shift;
179 if (shift > 5) {
180 buf[--bp] = (todigit(*end) >> (8 - shift))
181 & MASK(shift-5);
183 if ((shift = (shift + 3) % 8) == 0)
186 if ((shift = (shift) ? 0 : 4) == 0)
196 if (!shift)
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dstoa.c143 int shift = 0; local
162 buf[bp] |= toxdigit(*end) << shift;
164 if (shift > 5) {
165 buf[--bp] = (todigit(*end) >> (8 - shift))
166 & MASK(shift-5);
168 if ((shift = (shift + 3) % 8) == 0)
172 if ((shift = (shift) ? 0 : 4) == 0)
182 if (!shift)
[all...]
/illumos-gate/usr/src/lib/libast/common/string/
H A Dstrtoi.h231 register int shift; local
395 shift = base < 4 ? 1 : 2;
397 shift = base < 16 ? 3 : 4;
399 shift = base < 64 ? 5 : 6;
406 n <<= shift;
483 shift = 9;
487 shift = 10;
491 shift = 20;
495 shift = 30;
499 shift
[all...]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dleb128.c108 int shift = 0; local
125 res = res | (val << shift);
128 * Increment shift & dot pointer
130 shift += 7;
150 int shift = 0; local
167 res = res | (val << shift);
170 * Increment shift & dot pointer
172 shift += 7;
186 res = (res << (64 - shift)) >> (64 - shift);
[all...]
/illumos-gate/usr/src/lib/iconv_modules/common/
H A Dtab_lookup.h50 SHIFT shift; member in struct:_icv_state
H A Dibm%utf8.c79 st->shift = SHIFT_IN;
90 if (st->shift == SHIFT_IN) {
91 st->shift = SHIFT_OUT;
98 if (st->shift == SHIFT_OUT) {
99 st->shift = SHIFT_IN;
110 if (st->shift == SHIFT_IN) {
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_listutils.c311 int i, j, shift; local
322 shift = 0;
333 shift++;
334 else if (shift > 0)
335 a->sl_addr[i - shift] = a->sl_addr[i];
337 a->sl_numsrc -= shift;
351 int i, j, shift; local
360 shift = 0;
371 shift++;
372 else if (shift >
[all...]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_shift_to_zero.c47 sval_t mask, shift; local
59 if (!get_implied_value(expr->right, &shift))
64 if (mask.uvalue >> shift.uvalue)
67 sm_warning("mask and shift to zero");
85 sm_warning("right shift assign to zero");
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm.c214 int shift = 0; local
217 shift++;
221 if (argc - shift < 3)
224 if ((fd = open(argv[2+shift], O_RDONLY)) == -1)
225 bad_importfile(argv[0], argv[2+shift]);
/illumos-gate/usr/src/common/ficl/
H A Dhash.c35 * shift and add stolen from PJ Weinberger of Bell Labs fame. Case folds
45 ficlUnsigned16 shift = 0; local
54 shift = (ficlUnsigned16)(code & 0xf000);
55 if (shift) {
56 code ^= (ficlUnsigned16)(shift >> 8);
57 code ^= (ficlUnsigned16)shift;
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dmisc.c150 int shift = 28; local
160 shift = 12;
166 shift = 4;
187 for (; shift >= 0; shift -= 4)
188 *q++ = "0123456789ABCDEF"[(h >> shift) & 0xF] | ncase;
/illumos-gate/usr/src/cmd/sh/
H A Dhash.c49 #define hash(str) (int)(((unsigned)(crunch(str) * FACTOR)) >> shift)
61 static unsigned int shift; variable
86 shift = (bitsper * sizeof(int)) - LOG2LEN;
/illumos-gate/usr/src/uts/sun4/sys/
H A Dclock.h244 #define NATIVE_TIME_TO_NSEC_SCALE(out, scr1, scr2, shift) \
249 sllx out, shift, out; /* clear NPT and pre-scale */ \
258 srlx out, 32 - shift, out; \

Completed in 241 milliseconds

12345678