Searched refs:shift (Results 1 - 25 of 77) sorted by path

1234

/haiku/headers/cpp/std/
H A Dstd_valarray.h220 valarray<_Tp> shift (int) const;
488 valarray<_Tp>::shift (int __n) const function in class:valarray
491 if (! __n) // __n == 0: no shift
493 else if (__n > 0) { // __n > 0: shift left
501 else { // __n < 0: shift right
H A Dvalarray_meta.h665 valarray<value_type> shift (int) const;
/haiku/headers/libs/agg/
H A Dagg_math.h292 unsigned shift = 11;
330 shift -= bit;
333 return g_sqrt_table[val] >> shift;
H A Dagg_span_interpolator_linear.h152 void subdiv_shift(unsigned shift) argument
154 m_subdiv_shift = shift;
H A Dagg_span_subdiv_adaptor.h79 void subdiv_shift(unsigned shift) argument
81 m_subdiv_shift = shift;
/haiku/headers/private/graphics/radeon/
H A Dutils.h30 static inline int ceilShiftDiv( int num, int shift )
32 return (num + (1 << shift) - 1) >> shift;
/haiku/headers/private/kernel/util/
H A DRandom.h43 size_t shift = 0; local
45 while (shift < sizeof(T) * 8) {
46 random |= (T)fast_random_value() << shift;
47 shift += kFastRandomShift;
58 size_t shift = 0; local
60 while (shift < sizeof(T) * 8) {
61 random |= (T)random_value() << shift;
62 shift += kRandomShift;
73 size_t shift = 0; local
75 while (shift < sizeo
[all...]
/haiku/src/add-ons/accelerants/ati/
H A Daccelerant.h206 int Mach64_Divide(int numerator, int denom, int shift,
H A Dmach64_util.cpp43 Mach64_Divide(int numerator, int denominator, int shift, const int roundingKind) argument
48 // numerator shift
60 shift++;
63 while ((shift > 0) && !(denominator & 3)) {
65 shift--;
70 while (shift < 0) {
76 shift++;
86 return ((numerator / denominator) << shift) +
87 ((((numerator % denominator) << shift) + rounding) / denominator);
/haiku/src/add-ons/accelerants/radeon/
H A Doverlay.c525 #define I2FF( a, shift ) ((uint32)((a) * (1 << (shift))))
/haiku/src/add-ons/accelerants/radeon_hd/atombios/
H A Datom.cpp220 val = gctx->shift;
223 val = 1 << gctx->shift;
226 val = ~(1 << gctx->shift);
453 gctx->shift = val;
899 uint8 attr = U8((*ptr)++), shift; local
905 shift = atom_get_src_direct(ctx, ATOM_SRC_BYTE0, ptr);
908 __func__, dst, shift, dst << shift);
910 dst <<= shift; local
917 uint8 attr = U8((*ptr)++), shift; local
928 dst >>= shift; local
935 uint8 attr = U8((*ptr)++), shift; local
947 dst <<= shift; local
956 uint8 attr = U8((*ptr)++), shift; local
968 dst >>= shift; local
[all...]
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Dinfo.c927 uint8 index, byte, byte2, shift; local
953 shift = *((uint8*)(&(rom[*adress])));
959 LOG(8,("cmd 'RD 32bit reg $%08x, AND-out = $%08x, shift-right = $%02x,\n",
960 reg, and_out, shift));
968 data >>= shift; local
998 LOG(8,("cmd 'RD idx ISA reg $%02x via $%04x, AND-out = $%02x, shift-right = $%02x,\n",
1063 shift = *((uint8*)(&(rom[*adress])));
1071 LOG(8,("cmd 'RD idx ISA reg $%02x via $%04x, AND-out = $%02x, shift-right = $%02x,\n",
1072 index, reg, and_out, shift));
1081 data = (byte >> shift);
1747 uint8 index, byte, byte2, safe, shift; local
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/
H A Dar9300_gpio.c50 u_int8_t out_func, shift; local
68 shift = (gpio % 4);
72 flags |= ah_signal_type << (8*shift);
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dbitmap.c92 register u8 old_bit, shift; local
96 shift = bit & 7;
97 old_bit = (bitmap[bit >> 3] >> shift) & 1;
99 bitmap[bit >> 3] ^= 1 << shift;
H A Dbitmap.h77 * @shift: bits to roll
79 static __inline__ u32 ntfs_rol32(u32 word, unsigned int shift) argument
81 return (word << shift) | (word >> (32 - shift));
88 * @shift: bits to roll
90 static __inline__ u32 ntfs_ror32(u32 word, unsigned int shift) argument
92 return (word >> shift) | (word << (32 - shift));
/haiku/src/add-ons/translators/ico/
H A DICO.cpp147 int32 shift = x & 1 ? 0 : 4; local
148 int32 mask = ~0L & (0xf0 >> shift);
151 line[x / 2] |= value << shift;
/haiku/src/apps/soundrecorder/
H A DVUView.cpp106 #define SHIFT_UNTIL(value,shift,min) \
107 value = (value - shift > min) ? (value - shift) : min
/haiku/src/bin/
H A Dcatattr.cpp77 int32 missed = 0, shift = 24; local
79 for (int32 i = 0; i < 4; i++, shift -= 8) {
80 value[i] = uint8(type >> shift);
H A Dlistres.cpp59 int32 missed = 0, shift = 24; local
61 for (int32 i = 0; i < 4; i++, shift -= 8) {
62 value[i] = uint8(type >> shift);
/haiku/src/bin/keymap/
H A DKeymap.cpp848 "# [shft] [ \\ ] [ z ] [ x ] [ c ] [ v ] [ b ] [ n ] [ m ] [ , ] [ . ] [ / ] [ shift ] [ up] [ 1 ] [ 2 ] [ 3 ] [ent]\n"
/haiku/src/bin/pc/
H A Dpc.c220 ULONG ch, shift; local
240 shift = i * 8;
241 ch = ((ULONG)value & ((ULONG)0xff << shift)) >> shift;
/haiku/src/kits/interface/layouter/
H A DCollapsingLayouter.cpp285 int32 shift = 0; local
289 shift++;
293 element.position = i - shift;
/haiku/src/kits/package/hpkg/v1/
H A DReaderImplBaseV1.cpp940 int shift = 0; local
947 result |= uint64(byte & 0x7f) << shift;
950 shift += 7;
/haiku/src/kits/shared/
H A DColorQuantizer.cpp171 int shift = 7 - level; local
172 int index = (((r & kMask[level]) >> shift) << 2) |
173 (((g & kMask[level]) >> shift) << 1) |
174 (( b & kMask[level]) >> shift);
/haiku/src/libs/x86emu/
H A Dops2.c491 u8 shift; local
506 shift = fetch_byte_imm();
507 DECODE_PRINTF2("%d\n", shift);
510 destval = shld_long(destval, *shiftreg, shift);
521 shift = fetch_byte_imm();
522 DECODE_PRINTF2("%d\n", shift);
525 destval = shld_word(destval, *shiftreg, shift);
538 shift = fetch_byte_imm();
539 DECODE_PRINTF2("%d\n", shift);
542 destval = shld_long(destval, *shiftreg, shift);
932 u8 shift; local
1889 u8 shift; local
1915 u8 shift; local
1943 u8 shift; local
1969 u8 shift; local
1997 u8 shift; local
2023 u8 shift; local
2052 u8 shift; local
2078 u8 shift; local
[all...]

Completed in 384 milliseconds

1234