Searched defs:shift (Results 1 - 25 of 32) sorted by relevance

12

/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 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;
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...]
/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/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/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/grub2/util/
H A Dgrub-mklayout.c285 lookup (char *code, int shift) argument
290 if (shift)
309 get_grub_code (char *layout_code, int shift) argument
318 code = lookup (layout_code, shift);
369 char shift[64]; local
374 normal, shift, normalalt, shiftalt);
405 layout.keyboard_map_shift[keycode_usb] = get_grub_code (shift, 1);
/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/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/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/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/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/libast/common/sfio/
H A Dsfvscanf.c249 /* shift left data so that there will be more room to back up on error.
310 reg int inp, shift, base, width; local
852 shift = 4;
910 shift = base < 4 ? 1 : 2;
912 shift = base < 16 ? 3 : 4;
913 else shift = base < 64 ? 5 : 6;
916 { argv.lu = (argv.lu << shift) + sp[inp];
/osnet-11/usr/src/lib/libparted/common/lib/
H A Dquotearg.c134 int shift = uc % INT_BITS; local
135 int r = (*p >> shift) & 1;
136 *p ^= ((i & 1) ^ r) << shift;
475 its end, find an error, or come back to the initial shift
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_cg.c244 uint64_t shift; local
260 * ctm_offset % NBBY itself is the amount we want to shift right to
267 * properties are used to compute shift as USHIFT or SSHIFT, below.
271 shift = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY) * NBBY -
274 shift = mp->ctm_offset % NBBY + e.cte_bits;
276 dt_cg_setx(dlp, r2, 64 - shift);
285 shift = clp2(P2ROUNDUP(e.cte_bits, NBBY) / NBBY) * NBBY -
288 shift = mp->ctm_offset % NBBY;
290 dt_cg_setx(dlp, r2, shift);
328 uint64_t cmask, fmask, shift; local
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/
H A Dlinux.c827 int shift = 0; local
832 shift += 10;
834 shift += 10;
836 shift += 10;
842 if (linux_mem_size > (~0UL >> shift))
845 linux_mem_size <<= shift; local
/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/lib/libshell/common/sh/
H A Dlex.c2088 register int shift = (dp+1-sp); local
2089 offset += shift;
2092 ep = sp - shift;
/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/grub/grub2/grub-core/video/readers/
H A Dpng.c180 int code, shift; local
189 shift = 0;
198 code += (int) (data->bit_save & ((1 << n) - 1)) << shift;
207 shift += n;
/osnet-11/usr/src/lib/libvscan/common/
H A Dlibvscan.c1596 int shift; local
1625 if ((shift = vs_strtoshift(end)) == -1)
1628 fval *= pow(2, shift);
1636 if ((shift = vs_strtoshift(end)) == -1)
1640 if (shift >= 64 || (*num << shift) >> shift != *num) {
1645 *num <<= shift; local
1660 * >-1: Success; the shift count.
/osnet-11/usr/src/lib/libprtdiag/common/
H A Ddisplay_sun4v.c129 #define PCI_LINK_SHIFT 4 /* Link shift Bits */
140 /* PCI frequency shift bits */
495 int shift = sizeof (uint32_t)*8-1-card->slot; local
496 uint32_t x = (dev_mask << shift) >> shift;
/osnet-11/usr/src/lib/libshell/common/edit/
H A Dedit.c729 register int shift = 7-ep->e_wsize; local
732 strcpy(pp,pp+shift);
733 ep->e_plen -= shift;
989 /* shift lookahead buffer if necessary */

Completed in 145 milliseconds

12