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

1234567891011>>

/freebsd-9.3-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-9.3-release/lib/libutil/
H A Dexpand_number.c53 unsigned shift; local
66 shift = 60;
69 shift = 50;
72 shift = 40;
75 shift = 30;
78 shift = 20;
81 shift = 10;
93 if ((number << shift) >> shift != number) {
99 *num = number << shift;
[all...]
/freebsd-9.3-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-9.3-release/sys/libkern/
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 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 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-9.3-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;
H A Dadddf3.c104 // If partial cancellation occured, we need to left-shift the result
107 const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3); local
108 aSignificand <<= shift; local
109 aExponent -= shift;
116 // If the addition carried up, we need to right-shift the result and
130 // need to shift the significand.
131 const int shift = 1 - aExponent; local
132 const bool sticky = aSignificand << (typeWidth - shift);
133 aSignificand = aSignificand >> shift | sticky;
H A Daddsf3.c103 // If partial cancellation occured, we need to left-shift the result
106 const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3); local
107 aSignificand <<= shift; local
108 aExponent -= shift;
115 // If the addition carried up, we need to right-shift the result and
129 // need to shift the significand.
130 const int shift = 1 - aExponent; local
131 const bool sticky = aSignificand << (typeWidth - shift);
132 aSignificand = aSignificand >> shift | sticky;
/freebsd-9.3-release/lib/libc/stdlib/
H A Da64l.c27 long shift; local
31 shift = 0;
42 value |= digit << shift;
43 shift += 6;
/freebsd-9.3-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-9.3-release/lib/msun/src/
H A Ds_rintl.c43 shift[2] = { variable
79 x += shift[sign];
80 x -= shift[sign];
/freebsd-9.3-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-9.3-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...]
H A Dhashmap.c189 int start, end, shift; local
207 shift = OLDNUM(i) - i;
212 == shift)
226 if (shift < 0)
227 back_limit = back_ref_limit + (-shift);
229 if (newhash[i] == oldhash[i + shift]
230 || cost_effective(i + shift, i, shift < 0)) {
231 OLDNUM(i) = i + shift;
234 i, i + shift));
275 int start, shift, size; local
[all...]
/freebsd-9.3-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
113 uart_fdt_get_shift(node, &shift);
115 return (uart_bus_probe(dev, (int)shift, (int)clock, 0, 0));
139 pcell_t shift, b local
[all...]
/freebsd-9.3-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-9.3-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-9.3-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 270 milliseconds

1234567891011>>