Searched defs:shift (Results 151 - 175 of 713) sorted by relevance

1234567891011>>

/external/skqp/src/image/
H A DSkSurface_Raster.cpp78 int shift = SkColorTypeShiftPerPixel(info.colorType()); local
80 uint64_t minRB = (uint64_t)info.width() << shift;
85 size_t alignedRowBytes = rowBytes >> shift << shift;
/external/skqp/src/views/
H A DSkView.cpp11 static inline uint32_t SkSetClearShift(uint32_t bits, bool cond, unsigned shift) { argument
13 return (bits & ~(1 << shift)) | ((int)cond << shift);
/external/skqp/tests/
H A DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); local
52 shift &= ~(shift>>31);
53 if (shift > MAX_COEFF_SHIFT) {
54 shift = MAX_COEFF_SHIFT;
56 return 1 << shift;
H A DRandomTest.cpp59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { argument
65 bins[(rand.nextU() >> shift) & 0xff]++;
93 // we are using the random bit generated from a single shift position to generate
102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { argument
117 value |= ((rnd >> shift) & 0x1);
124 value |= ((rnd >> shift) & 0x1);
/external/speex/libspeex/
H A Dfftwrap.c47 int i, shift; local
56 shift=0;
60 shift++;
64 out[i] = SHL16(in[i], shift);
66 return shift;
69 static void renorm_range(spx_word16_t *in, spx_word16_t *out, int shift, int len) argument
74 out[i] = PSHR16(in[i], shift);
275 int shift; local
277 shift = maximize_range(in, in, 32000, t->N);
279 renorm_range(in, in, shift,
[all...]
H A Dstereo.c154 int shift; local
187 shift = spx_ilog2(largest)-15;
188 largest = VSHR32(largest, shift-4);
189 smallest = VSHR32(smallest, shift);
206 shift = spx_ilog2(e_tot);
207 e_tot = VSHR32(e_tot, shift-25);
208 e_left = VSHR32(e_left, shift-10);
209 e_right = VSHR32(e_right, shift-10);
/external/syslinux/com32/lib/jpeg/
H A Djidctflt.c85 static inline unsigned char descale_and_clamp(int x, int shift) argument
95 : "0"(x), "Ir"(shift), "ir"(1UL<<(shift-1)), "r" (0xff), "r" (0)
101 static inline unsigned char descale_and_clamp(int x, int shift) argument
103 x += (1UL<<(shift-1));
105 x = (x >> shift) | ((~(0UL)) << (32-(shift)));
107 x >>= shift; local
/external/syslinux/core/fs/ufs/
H A Dbmap.c23 get_blkaddr (const uint8_t *blk, uint32_t index, uint32_t shift) argument
28 (uint8_t *) blk + (index << shift),
29 1 << shift);
86 * @shft_per_blk: shift to get nr. of addresses in a block.
/external/syslinux/core/lwip/src/core/snmp/
H A Dasn1_enc.c491 u8_t shift, tail; local
496 shift = 28;
497 while(shift > 0)
501 code = (u8_t)(sub_id >> shift);
521 shift -= 7;
/external/syslinux/gpxe/src/drivers/bitbash/
H A Di2c_bit.c201 int shift; local
213 for ( shift = ( 8 * ( i2cdev->dev_addr_len - 1 ) ) ;
214 shift >= 0 ; shift -= 8 ) {
215 byte = ( ( address >> shift ) & 0xff );
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/testutil/
H A Drandom_tree_gen.cc151 void RandomTreeGen::ShiftNodeIndex(DecisionTreeConfig* tree, int shift) { argument
172 split->set_left_id(shift + split->left_id());
173 split->set_right_id(shift + split->right_id());
/external/tensorflow/tensorflow/core/kernels/
H A Drecord_yielder.cc122 // Left-shift the filename list.
124 int64 shift; local
127 shift = opts_.file_shuffle_shift_ratio * num;
128 std::rotate(filenames.begin(), filenames.begin() + shift,
H A Droll_op.cc46 int offset = 0; // the shift along the flattened tensor for current element
53 const int shift = dim_size[i] - threshold[i];
56 // calculate dimension index after the shift
57 const int shifted_indx = (indx + shift) % dim_size[i];
70 // dim_range[j] = threshold[j] + shift[j]
71 // offset = shift[j] + ... other offsets
78 } else if (threshold[j] != 0) { // if threshold is 0 shift is 0
98 // isd - inner shift dimension
140 const int shift = dim_size[i] - threshold[i];
143 // calculate dimension index after the shift
230 const Tensor& shift = context->input(1); variable
[all...]
/external/tensorflow/tensorflow/core/lib/io/
H A Dinputbuffer.cc142 int shift = 7 * index; local
144 *result |= (static_cast<T>(scratch) & 127) << shift;
/external/v4l2_codec2/vda/
H A Dvp8_bool_decoder.cc105 int shift = VP8_BD_VALUE_BIT - CHAR_BIT - (count_ + CHAR_BIT); local
108 int x = shift + CHAR_BIT - static_cast<int>(bits_left);
117 while (shift >= loop_end) {
119 value_ |= static_cast<size_t>(*user_buffer_) << shift;
121 shift -= CHAR_BIT;
141 size_t shift = kVp8Norm[range_]; local
142 range_ <<= shift; local
143 value_ <<= shift; local
144 count_ -= static_cast<int>(shift);
/external/v8/src/base/
H A Dbits.h190 // Precondition: 0 <= shift < 32
191 inline uint32_t RotateRight32(uint32_t value, uint32_t shift) { argument
192 if (shift == 0) return value;
193 return (value >> shift) | (value << (32 - shift));
196 // Precondition: 0 <= shift < 32
197 inline uint32_t RotateLeft32(uint32_t value, uint32_t shift) { argument
198 if (shift == 0) return value;
199 return (value << shift) | (value >> (32 - shift));
203 RotateRight64(uint64_t value, uint64_t shift) argument
209 RotateLeft64(uint64_t value, uint64_t shift) argument
[all...]
/external/v8/src/
H A Dsource-position-table.cc81 int shift = 0; local
88 << shift;
90 shift += ValueBits::kSize;
/external/valgrind/none/tests/s390x/
H A Ddfp-2.c10 - shift left/right 64/128 bit
215 int *shift = (int *) amount; local
219 :[in]"f"(in),[amount]"a"(shift));
231 int *shift = (int *) amount; local
235 :[in]"f"(in),[amount]"a"(shift));
247 int *shift = (int *) amount; local
251 :[in]"f"(in),[amount]"a"(shift));
263 int *shift = (int *) amount; local
267 :[in]"f"(in),[amount]"a"(shift));
/external/vixl/test/aarch32/
H A Dtest-assembler-cond-rd-memop-rs-shift-amount-1to31-a32.cc74 ShiftType shift; member in struct:vixl::aarch32::__anon29973::Operands
3605 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to31-ldr-a32.h"
3606 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to31-ldrb-a32.h"
3607 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to31-str-a32.h"
3608 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to31-strb-a32.h"
3633 ShiftType shift = kTests[i].operands.shift; local
3636 MemOperand memop(rn, sign, rm, shift, amount, addr_mode);
H A Dtest-assembler-cond-rd-memop-rs-shift-amount-1to32-a32.cc74 ShiftType shift; member in struct:vixl::aarch32::__anon29974::Operands
3605 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to32-ldr-a32.h"
3606 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to32-ldrb-a32.h"
3607 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to32-str-a32.h"
3608 #include "aarch32/traces/assembler-cond-rd-memop-rs-shift-amount-1to32-strb-a32.h"
3633 ShiftType shift = kTests[i].operands.shift; local
3636 MemOperand memop(rn, sign, rm, shift, amount, addr_mode);
H A Dtest-assembler-cond-rd-operand-rn-shift-amount-1to31-a32.cc76 ShiftType shift; member in struct:vixl::aarch32::__anon29985::Operands
1411 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-cmn-a32.h"
1412 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-cmp-a32.h"
1413 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mov-a32.h"
1414 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-movs-a32.h"
1415 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mvn-a32.h"
1416 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mvns-a32.h"
1417 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-teq-a32.h"
1418 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-tst-a32.h"
1441 ShiftType shift local
[all...]
H A Dtest-assembler-cond-rd-operand-rn-shift-amount-1to31-in-it-block-t32.cc68 ShiftType shift; member in struct:vixl::aarch32::__anon29986::Operands
1099 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-in-it-block-mov-t32.h"
1122 ShiftType shift = kTests[i].operands.shift; local
1124 Operand op(rn, shift, amount);
H A Dtest-assembler-cond-rd-operand-rn-shift-amount-1to31-t32.cc76 ShiftType shift; member in struct:vixl::aarch32::__anon29987::Operands
1435 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-cmn-t32.h"
1436 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-cmp-t32.h"
1437 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mov-t32.h"
1438 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-movs-t32.h"
1439 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mvn-t32.h"
1440 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-mvns-t32.h"
1441 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-teq-t32.h"
1442 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to31-tst-t32.h"
1465 ShiftType shift local
[all...]
H A Dtest-assembler-cond-rd-operand-rn-shift-amount-1to32-a32.cc76 ShiftType shift; member in struct:vixl::aarch32::__anon29988::Operands
783 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-cmn-a32.h"
784 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-cmp-a32.h"
785 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-mov-a32.h"
786 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-movs-a32.h"
787 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-mvn-a32.h"
788 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-mvns-a32.h"
789 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-teq-a32.h"
790 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-tst-a32.h"
813 ShiftType shift local
[all...]
H A Dtest-assembler-cond-rd-operand-rn-shift-amount-1to32-in-it-block-t32.cc68 ShiftType shift; member in struct:vixl::aarch32::__anon29989::Operands
599 #include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-in-it-block-mov-t32.h"
622 ShiftType shift = kTests[i].operands.shift; local
624 Operand op(rn, shift, amount);

Completed in 1612 milliseconds

1234567891011>>