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

1234567891011>>

/freebsd-10.0-release/cddl/contrib/opensolaris/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);
/freebsd-10.0-release/lib/libc/quad/
H A Dashldi3.c43 * Shift a (signed) quad value left (arithmetic shift left).
44 * This is the same as logical shift left!
47 __ashldi3(a, shift)
49 qshift_t shift;
54 if (shift >= LONG_BITS) {
55 aa.ul[H] = shift >= QUAD_BITS ? 0 :
56 aa.ul[L] << (shift - LONG_BITS);
58 } else if (shift > 0) {
59 aa.ul[H] = (aa.ul[H] << shift) |
60 (aa.ul[L] >> (LONG_BITS - shift));
[all...]
H A Dlshldi3.c43 * Shift an (unsigned) quad value left (logical shift left).
44 * This is the same as arithmetic shift left!
47 __lshldi3(a, shift)
49 qshift_t shift;
54 if (shift >= LONG_BITS) {
55 aa.ul[H] = shift >= QUAD_BITS ? 0 :
56 aa.ul[L] << (shift - LONG_BITS);
58 } else if (shift > 0) {
59 aa.ul[H] = (aa.ul[H] << shift) |
60 (aa.ul[L] >> (LONG_BITS - shift));
[all...]
H A Dlshrdi3.c43 * Shift an (unsigned) quad value right (logical shift right).
46 __lshrdi3(a, shift)
48 qshift_t shift;
53 if (shift >= LONG_BITS) {
54 aa.ul[L] = shift >= QUAD_BITS ? 0 :
55 aa.ul[H] >> (shift - LONG_BITS);
57 } else if (shift > 0) {
58 aa.ul[L] = (aa.ul[L] >> shift) |
59 (aa.ul[H] << (LONG_BITS - shift));
60 aa.ul[H] >>= shift;
[all...]
H A Dashrdi3.c43 * Shift a (signed) quad value right (arithmetic shift right).
46 __ashrdi3(a, shift)
48 qshift_t shift;
53 if (shift >= LONG_BITS) {
57 * Smear bits rightward using the machine's right-shift
60 * LONG_BITS is undefined, so we shift (LONG_BITS-1),
64 aa.ul[L] = shift >= QUAD_BITS ? s :
65 aa.sl[H] >> (shift - LONG_BITS);
67 } else if (shift > 0) {
68 aa.ul[L] = (aa.ul[L] >> shift) |
[all...]
/freebsd-10.0-release/sys/libkern/
H A Dlshrdi3.c40 * Shift an (unsigned) quad value right (logical shift right).
43 __lshrdi3(a, shift)
45 qshift_t shift;
50 if (shift >= LONG_BITS) {
51 aa.ul[L] = shift >= QUAD_BITS ? 0 :
52 aa.ul[H] >> (shift - LONG_BITS);
54 } else if (shift > 0) {
55 aa.ul[L] = (aa.ul[L] >> shift) |
56 (aa.ul[H] << (LONG_BITS - shift));
57 aa.ul[H] >>= shift;
[all...]
H A Dashldi3.c40 * Shift a (signed) quad value left (arithmetic shift left).
41 * This is the same as logical shift left!
44 __ashldi3(a, shift)
46 qshift_t shift;
51 if (shift >= LONG_BITS) {
52 aa.ul[H] = shift >= QUAD_BITS ? 0 :
53 aa.ul[L] << (shift - LONG_BITS);
55 } else if (shift > 0) {
56 aa.ul[H] = (aa.ul[H] << shift) |
57 (aa.ul[L] >> (LONG_BITS - shift));
[all...]
H A Dashrdi3.c40 * Shift a (signed) quad value right (arithmetic shift right).
43 __ashrdi3(a, shift)
45 qshift_t shift;
50 if (shift >= LONG_BITS) {
54 * Smear bits rightward using the machine's right-shift
57 * LONG_BITS is undefined, so we shift (LONG_BITS-1),
61 aa.ul[L] = shift >= QUAD_BITS ? s :
62 aa.sl[H] >> (shift - LONG_BITS);
64 } else if (shift > 0) {
65 aa.ul[L] = (aa.ul[L] >> shift) |
[all...]
/freebsd-10.0-release/lib/libutil/
H A Dexpand_number.c44 unsigned shift; local
59 shift = 60;
62 shift = 50;
65 shift = 40;
68 shift = 30;
71 shift = 20;
74 shift = 10;
86 if ((number << shift) >> shift != number) {
91 *num = number << shift;
[all...]
/freebsd-10.0-release/contrib/compiler-rt/lib/
H A Dfloatunsisf.c34 // Shift a into the significand field, rounding if it is a right-shift
36 const int shift = significandBits - exponent; local
37 result = (rep_t)a << shift ^ implicitBit;
39 const int shift = exponent - significandBits; local
40 result = (rep_t)a >> shift ^ implicitBit;
41 rep_t round = (rep_t)a << (typeWidth - shift);
H A Dfloatsisf.c42 // Shift a into the significand field, rounding if it is a right-shift
44 const int shift = significandBits - exponent; local
45 result = (rep_t)a << shift ^ implicitBit;
47 const int shift = exponent - significandBits; local
48 result = (rep_t)a >> shift ^ implicitBit;
49 rep_t round = (rep_t)a << (typeWidth - shift);
H A Dfloatsidf.c45 const int shift = significandBits - exponent; local
46 result = (rep_t)(unsigned int)a << shift ^ implicitBit;
H A Dfloatunsidf.c35 const int shift = significandBits - exponent; local
36 result = (rep_t)a << shift ^ implicitBit;
/freebsd-10.0-release/lib/libc/stdlib/
H A Da64l.c27 long shift; local
31 shift = 0;
42 value |= digit << shift;
43 shift += 6;
/freebsd-10.0-release/contrib/bmake/mk/
H A Dlinks.mk37 l=$$1; shift; \
38 t=${DESTDIR}$$1; shift; \
44 l=${DESTDIR}$$1; shift; \
45 t=${DESTDIR}$$1; shift; \
59 l=$$1; shift; \
60 t=$$1; shift; \
66 l=$$1; shift; \
67 t=$$1; shift; \
/freebsd-10.0-release/contrib/apr-util/strmatch/
H A Dapr_strmatch.c39 apr_size_t *shift = (apr_size_t *)(this_pattern->context); local
53 s_next += shift[(int)*((const unsigned char *)s_next)];
63 apr_size_t *shift = (apr_size_t *)(this_pattern->context); local
77 s_next += shift[(unsigned char)apr_tolower(*s_next)];
88 apr_size_t *shift; local
99 shift = (apr_size_t *)apr_palloc(p, sizeof(apr_size_t) * NUM_CHARS);
101 shift[i] = pattern->length;
106 shift[(unsigned char)s[i]] = pattern->length - i - 1;
112 shift[(unsigned char)apr_tolower(s[i])] = pattern->length - i - 1;
115 pattern->context = shift;
[all...]
/freebsd-10.0-release/lib/msun/src/
H A Ds_rintl.c43 shift[2] = { variable
79 x += shift[sign];
80 x -= shift[sign];
/freebsd-10.0-release/sys/mips/nlm/
H A Dboard_cpld.c103 int shift = 0; local
106 case 0: shift = 0; break;
107 case 1: shift = 4; break;
108 case 2: shift = 2; break;
109 case 3: shift = 6; break;
111 val = nlm_cpld_read(base, CPLD_CTRL_STATUS) >> shift;
/freebsd-10.0-release/contrib/gperf/src/
H A Dhash-table.cc51 unsigned int shift = 0; local
55 shift += 16;
60 shift += 8;
65 shift += 4;
70 shift += 2;
75 shift += 1;
77 _log_size = shift;
78 _size = 1 << shift;
/freebsd-10.0-release/sys/dev/uart/
H A Duart_bus_fdt.c87 pcell_t shift; local
89 if ((OF_getprop(node, "reg-shift", &shift, sizeof(shift))) <= 0)
90 shift = 0;
91 *cell = fdt32_to_cpu(shift);
100 pcell_t clock, shift; local
125 uart_fdt_get_shift(node, &shift);
127 return (uart_bus_probe(dev, (int)shift, (int)clock, 0, 0));
/freebsd-10.0-release/contrib/ncurses/ncurses/tty/
H A Dhardscroll.c189 int start, end, shift; local
222 shift = OLDNUM(i) - i; /* shift > 0 */
227 == shift)
229 end = i - 1 + shift;
231 TR(TRACE_UPDATE | TRACE_MOVE, ("scroll [%d, %d] by %d", start, end, shift));
233 if (_nc_scrolln(shift, start, end, screen_lines - 1) == ERR) {
247 shift = OLDNUM(i) - i; /* shift < 0 */
251 while (i >= 0 && OLDNUM(i) != _NEWINDEX && OLDNUM(i) - i == shift)
[all...]
/freebsd-10.0-release/sys/dev/cxgb/ulp/iw_cxgb/
H A Diw_cxgb_mem.c93 int shift)
104 shift - 12,
117 int shift,
134 shift - 12,
175 int *shift,
204 /* Find largest page shift we can use to cover buffers */
205 for (*shift = PAGE_SHIFT; *shift < 27; ++(*shift))
206 if ((1ULL << *shift)
91 iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift) argument
115 iwch_reregister_mem(struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift, int npages) argument
170 build_phys_page_list(struct ib_phys_buf *buffer_list, int num_phys_buf, u64 *iova_start, u64 *total_size, int *npages, int *shift, __be64 **page_list) argument
[all...]
/freebsd-10.0-release/contrib/llvm/tools/lldb/include/lldb/Core/
H A DFlags.h220 for (ValueType shift = 0; shift < sizeof(ValueType)*8; ++shift)
222 if ((m_flags & (1u << shift)) == 0)
/freebsd-10.0-release/sys/ofed/drivers/infiniband/core/
H A Dpacker.c70 int shift; local
75 shift = 32 - desc[i].offset_bits - desc[i].size_bits;
79 structure) << shift;
83 mask = cpu_to_be32(((1ull << desc[i].size_bits) - 1) << shift);
87 int shift; local
92 shift = 64 - desc[i].offset_bits - desc[i].size_bits;
96 structure) << shift;
100 mask = cpu_to_be64((~0ull >> (64 - desc[i].size_bits)) << shift);
160 int shift; local
165 shift
174 int shift; local
[all...]
/freebsd-10.0-release/contrib/ntp/kernel/sys/
H A Dbsd_audioirig.h46 (ib)->shift[0] = (ib)->shift[1] = (ib)->shift[2] = \
47 (ib)->shift[3] = (ib)->sdata[0] = (ib)->sdata[1] = \
91 long shift[4]; /* shift register of pos ident */ member in struct:auib
92 long sdata[4]; /* shift register of symbols */

Completed in 445 milliseconds

1234567891011>>