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

123

/osnet-11/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;
/osnet-11/usr/src/lib/libast/common/string/
H A Dwc2utf8.c38 unsigned short shift; member in struct:Utf8_s
61 *s++ = ops[i].prefix | (w >> ops[i].shift);
62 switch (ops[i].shift)
H A Dstrtoi.h234 register int shift; local
398 shift = base < 4 ? 1 : 2;
400 shift = base < 16 ? 3 : 4;
402 shift = base < 64 ? 5 : 6;
409 n <<= shift;
487 shift = 9;
492 shift = 10;
496 shift = 20;
500 shift = 30;
504 shift
[all...]
/osnet-11/usr/src/lib/libntfs/common/include/ntfs/
H A Dbitmap.h92 register u8 old_bit, shift; local
96 shift = bit & 7;
97 old_bit = (bitmap[bit >> 3] >> shift) & 1;
99 bitmap[bit >> 3] ^= 1 << shift;
/osnet-11/usr/src/lib/libc/sparc/gen/
H A Dlsign.s47 srl %o0,31,%o0 ! shift letf logical to isolate sign
H A Dlshiftl.s60 ! Positive (or null) shift (left)
76 .right: ! Negative shift (right)
/osnet-11/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...]
/osnet-11/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;
/osnet-11/usr/src/lib/libbsm/common/
H A Daudit_plugin.c350 getshift(char *str, int *shift) argument
356 *shift = 0;
370 *shift = i * 10;
387 int shift; local
405 if (!getshift(end, &shift)) {
409 fval *= (1 << shift);
417 if (!getshift(end, &shift)) {
420 if (shift >= 8 * sizeof (*num) ||
421 (*num << shift) >> shift !
425 *num <<= shift; local
[all...]
/osnet-11/usr/src/lib/libc/i386/gen/
H A Dlshiftl.s49 / We are doing a negative (right) shift
59 / We are doing a positive (left) shift
/osnet-11/usr/src/grub/grub2/include/grub/zfs/
H A Dspa.h59 #define BF32_GET_SB(x, low, len, shift, bias) \
60 ((BF32_GET(x, low, len) + (bias)) << (shift))
61 #define BF64_GET_SB(x, low, len, shift, bias) \
62 ((BF64_GET(x, low, len) + (bias)) << (shift))
64 #define BF32_SET_SB(x, low, len, shift, bias, val) \
65 BF32_SET(x, low, len, ((val) >> (shift)) - (bias))
66 #define BF64_SET_SB(x, low, len, shift, bias, val) \
67 BF64_SET(x, low, len, ((val) >> (shift)) - (bias))
/osnet-11/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h42 #define BF32_GET_SB(x, low, len, shift, bias) \
43 ((BF32_GET(x, low, len) + (bias)) << (shift))
44 #define BF64_GET_SB(x, low, len, shift, bias) \
45 ((BF64_GET(x, low, len) + (bias)) << (shift))
47 #define BF32_SET_SB(x, low, len, shift, bias, val) \
48 BF32_SET(x, low, len, ((val) >> (shift)) - (bias))
49 #define BF64_SET_SB(x, low, len, shift, bias, val) \
50 BF64_SET(x, low, len, ((val) >> (shift)) - (bias))
/osnet-11/usr/src/lib/libmtmalloc/common/
H A Dmtmalloc.c261 #define MEMALIGN_HEADER_ALLOC(x, shift, malloc_addr)\
262 if (shift == OVERHEAD)\
347 size_t shift = 0; local
397 shift = (size_t)((uintptr_t)data_ptr - (uintptr_t)ptr);
401 shift = OVERHEAD;
408 (void) memcpy(new, data_ptr, MIN(bytes, old->size - shift));
416 MIN(cacheptr->mt_size - OVERHEAD - shift, bytes));
623 uintptr_t ret_addr, taddr, shift, tshift; local
628 shift = alignment - offset;
630 assert(shift >
[all...]
/osnet-11/usr/src/lib/abi/apptrace/common/
H A Dapptraceutil.c107 uint8_t shift; local
111 * to the lowest 'size' bytes in 'value', and we need shift based on
118 shift = off % NBBY;
125 shift = NBBY - shift;
129 * If the bits we want do not begin on a byte boundary, shift the data
133 value >>= shift; local
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/pc/
H A Dlinux.c249 int shift = 0; local
254 shift += 10;
256 shift += 10;
258 shift += 10;
264 if (linux_mem_size > (~0UL >> shift))
267 linux_mem_size <<= shift; local
/osnet-11/usr/src/grub/grub2/grub-core/video/i386/pc/
H A Dvga.c218 int shift = 7; local
224 cbyte |= (!!(plane & *ptr)) << shift;
225 shift--;
226 if (shift == -1)
229 shift = 7;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp.h346 #define tryAMAGICunW(meth,set,shift,ret) STMT_START { \
349 SV* arg= sp[shift]; \
354 SPAGAIN; if (shift) sp += shift; \
363 #define tryAMAGICunTARGET(meth, shift) \
366 { dSP; tryAMAGICunW(meth,FORCE_SETs,shift,RETURN);}}}
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Dmisc.c967 int shift; local
972 shift = 0;
977 shift = 6;
982 shift = 12;
987 shift = 18;
992 shift = 24;
997 shift = 30;
1003 shift = 0;
1007 write_char (mask | (code >> shift));
1009 for (shift
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigRat/t/
H A Dbigratpm.inc178 my $x = shift;
/osnet-11/usr/src/lib/libc/amd64/unwind/
H A Dcall_frame_inst.c321 int shift = 0; local
327 res = res | val << shift;
328 shift += 7;
340 int shift = 0; local
346 res = res | val<< shift;
347 shift += 7;
350 res = (res << (64 - shift)) >> (64 - shift);
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dboot.c344 int shift = 0; local
349 shift += 10;
351 shift += 10;
353 shift += 10;
359 if (linux_mem_size > (MAXINT >> shift))
362 linux_mem_size <<= shift; local
/osnet-11/usr/src/grub/grub2/grub-core/commands/i386/pc/
H A Dsendkey.c44 {"left-shift", 0, 0, N_("press left shift"), "[on|off]", ARG_TYPE_STRING},
45 {"right-shift", 0, 0, N_("press right shift"), "[on|off]", ARG_TYPE_STRING},
118 {"shift", 0, 0, 0, 0x2a},
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/
H A Dupgrade.inc34 my $self = shift; # for override in subclass
217 my $warn = ''; $SIG{__WARN__} = sub { $warn = shift; };
233 my $x = shift;

Completed in 72 milliseconds

123