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

1234567891011>>

/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/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-11-stable/sys/contrib/alpine-hal/
H A Dal_hal_reg_utils.h65 #define AL_REG_FIELD_GET(reg, mask, shift) (((reg) & (mask)) >> (shift))
68 #define AL_REG_FIELD_SET(reg, mask, shift, val) \
71 ((((unsigned)(val)) << (shift)) & (mask)))
74 #define AL_REG_FIELD_SET_64(reg, mask, shift, val) \
77 ((((uint64_t)(val)) << (shift)) & (mask))))
80 #define AL_REG_BIT_GET(reg, shift) \
81 AL_REG_FIELD_GET(reg, AL_BIT(shift), shift)
83 #define AL_REG_BITS_FIELD(shift, va
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/arm/
H A Dclzsi2.S39 #define BLOCK(shift) \
40 lsrs r2, r0, shift; \
42 addeq r1, shift \
H A Dclzdi2.S59 #define BLOCK(shift) \
60 lsrs r2, r0, shift; \
62 addeq r1, shift \
/freebsd-11-stable/lib/libc/stdlib/
H A Da64l.c27 long shift; local
31 shift = 0;
42 value |= digit << shift;
43 shift += 6;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dfloatsisf.c39 // Shift a into the significand field, rounding if it is a right-shift
41 const int shift = significandBits - exponent; local
42 result = (rep_t)a << shift ^ implicitBit;
44 const int shift = exponent - significandBits; local
45 result = (rep_t)a >> shift ^ implicitBit;
46 rep_t round = (rep_t)a << (typeWidth - shift);
H A Dfloatunsisf.c32 // Shift a into the significand field, rounding if it is a right-shift
34 const int shift = significandBits - exponent; local
35 result = (rep_t)a << shift ^ implicitBit;
37 const int shift = exponent - significandBits; local
38 result = (rep_t)a >> shift ^ implicitBit;
39 rep_t round = (rep_t)a << (typeWidth - shift);
H A Dfloatunditf.c32 const int shift = significandBits - exponent; local
33 result = (rep_t)a << shift ^ implicitBit;
H A Dfloatunsitf.c32 const int shift = significandBits - exponent; local
33 result = (rep_t)a << shift ^ implicitBit;
H A Dfloatditf.c39 // Shift a into the significand field, rounding if it is a right-shift
40 const int shift = significandBits - exponent; local
41 result = (rep_t)aAbs << shift ^ implicitBit;
/freebsd-11-stable/contrib/bmake/mk/
H A Dlinks.mk42 l=$$1; shift; \
43 t=${DESTDIR}$$1; shift; \
49 l=${DESTDIR}$$1; shift; \
50 t=${DESTDIR}$$1; shift; \
64 l=$$1; shift; \
65 t=$$1; shift; \
71 l=$$1; shift; \
72 t=$$1; shift; \
/freebsd-11-stable/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-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/ppc/
H A Dfixunstfti.c27 int hiExponent, loExponent, shift; local
55 // - Calculate the shift (amount to scale the double by in the int128)
71 shift = hiExponent - 54;
75 hiResult <<= shift; local
95 shift = loExponent - 54;
99 loResult <<= shift; local
/freebsd-11-stable/lib/msun/src/
H A Ds_rintl.c43 shift[2] = { variable
79 x += shift[sign];
80 x -= shift[sign];
/freebsd-11-stable/sys/contrib/ncsw/inc/
H A Dtypes_freebsd.h81 uint32_t shift = QE_32_BIT_SHIFT8(arg); \
83 tmp = (uint32_t)((tmp & ~(0x000000FF << shift)) | ((uint32_t)(data & 0x000000FF) << shift)); \
91 uint32_t shift = QE_32_BIT_SHIFT16(arg); \
93 tmp = (uint32_t)((tmp & ~(0x0000FFFF << shift)) | ((uint32_t)(data & 0x0000FFFF) << shift)); \
/freebsd-11-stable/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-11-stable/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;

Completed in 307 milliseconds

1234567891011>>