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

12345

/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 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...]
/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/tools/ctf/dwarf/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/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/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/common/crypto/arcfour/sun4v/
H A Darcfour_crypt.c67 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 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/cmd/eqn/
H A Dshift.c85 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 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/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/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/uts/common/fs/tmpfs/
H A Dtmp_subr.c50 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 Dpathutil.c226 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 Dtrace_funcs.c108 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 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/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/tools/stabs/
H A Dforth.c206 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 Dgenassym.c231 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 Dtrace_funcs.c102 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 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/uts/sun4u/io/pci/
H A Dpci_cb.c138 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 Dpcmu_cb.c146 uint_t shift = (ino & 0x1f) << 1; local
154 while ((((lddphysio(state_reg_pa) >> shift) &
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c283 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;

Completed in 156 milliseconds

12345