/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | ashldi3.c | 41 * 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 D | lshrdi3.c | 41 * 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 D | ashrdi3.c | 41 * 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...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_rm.c | 92 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/tools/ctf/dwarf/common/ |
H A D | dwarf_leb.c | 52 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/cmd/bnu/ |
H A D | stoa.c | 143 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/common/ficl/ |
H A D | hash.c | 35 * 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/common/crypto/arcfour/sun4v/ |
H A D | arcfour_crypt.c | 67 unsigned int tmp0, tmp1, i_accum, shift = 0, i1; local 148 shift = 8; mask = 0xff; 556 merge1 = merge0 | (merge >> shift); 571 if (shift) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/ |
H A D | ilbadm.c | 214 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/cmd/eqn/ |
H A D | shift.c | 85 printf(".\tb:b shift b: S%d <- S%d vert %d S%d vert %d; " 104 shift(int p1) function
|
/illumos-gate/usr/src/cmd/sgs/tools/common/ |
H A D | leb128.c | 108 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/cmd/sh/ |
H A D | hash.c | 49 #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/common/inet/ip/ |
H A D | ip_listutils.c | 311 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/uts/common/fs/tmpfs/ |
H A D | tmp_subr.c | 50 int shift = 0; local 56 shift += MODESHIFT; 58 shift += MODESHIFT; 62 tp->tn_mode << shift, mode));
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | pathutil.c | 226 int shift; /* The number of characters to shift the suffix by */ local 245 * Work out how far we need to shift the original path string to make 252 for(shift=0,i=0; i<slen; i++) { 255 shift++; 258 shift = slen; 263 if(!_pn_resize_path(path, pathlen + shift)) 268 memmove(path->name + shift, path->name, pathlen+1);
|
/illumos-gate/usr/src/lib/libtnfprobe/ |
H A D | trace_funcs.c | 108 tnf_uint32_t shift; local 243 shift = ((tnf_buf_file_header_t *)file_start)->com.file_log_size; 256 sched_offset = ((sched->record_gen - block->generation) << shift) + 304 ((sched->record_gen - block->generation) << shift) +
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | stoa.c | 155 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/grub/grub-0.97/netboot/ |
H A D | misc.c | 150 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/tools/stabs/ |
H A D | forth.c | 206 int offset, shift, mask; local 209 shift = 32 - ((mlp->offset % 32) + mlp->size); 210 mask = ((int)pow(2, mlp->size) - 1) << shift; 212 format, shift, mask, offset, mlp->name);
|
H A D | genassym.c | 231 int offset, shift, mask; local 234 shift = 32 - ((mlp->offset % 32) + mlp->size); 235 mask = ((int)pow(2, mlp->size) - 1) << shift; 237 printf("#define\t%s_SHIFT 0x%x\n", format, shift);
|
/illumos-gate/usr/src/uts/common/tnf/ |
H A D | trace_funcs.c | 102 tnf_uint32_t shift; local 181 shift = ((tnf_buf_file_header_t *)tnf_buf)->com.file_log_size; 194 sched_offset = ((sched->record_gen - block->generation) << shift) + 197 sched_offset = ((sched->record_gen - block->generation) << shift) + 254 ((sched->record_gen - block->generation) << shift) + 261 ((sched->record_gen - block->generation) << shift) +
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | strtoi.h | 231 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/uts/sun4u/io/pci/ |
H A D | pci_cb.c | 138 uint_t shift = (ino & 0x1f) << 1; local 143 while ((((lddphysio(state_reg_pa) >> shift) &
|
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_cb.c | 146 uint_t shift = (ino & 0x1f) << 1; local 154 while ((((lddphysio(state_reg_pa) >> shift) &
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 283 ziprintf("data shift: %d\n", (int)dn->dn_datablkshift); 284 ziprintf(" ind shift: %d\n", (int)dn->dn_indblkshift); 310 int shift = dn->dn_indblkshift - SPA_BLKPTRSHIFT; local 313 record->zi_start >>= shift; 314 record->zi_end >>= shift;
|