Home
last modified time | relevance | path

Searched refs:bit_index (Results 1 – 17 of 17) sorted by relevance

/external/srtp/crypto/math/
Ddatatypes.c328 const int bit_index = index & 31; in v128_right_shift() local
337 if (bit_index == 0) { in v128_right_shift()
349 b = x->v32[from] << bit_index; in v128_right_shift()
351 b |= x->v32[from-1] >> (32-bit_index); in v128_right_shift()
367 const int bit_index = index & 31; in v128_left_shift() local
374 if (bit_index == 0) { in v128_left_shift()
379 x->v32[i] = (x->v32[i+base_index] >> bit_index) ^ in v128_left_shift()
380 (x->v32[i+base_index+1] << (32 - bit_index)); in v128_left_shift()
381 x->v32[4 - base_index-1] = x->v32[4-1] >> bit_index; in v128_left_shift()
395 bitvector_get_bit(const bitvector_t *v, int bit_index) in bitvector_get_bit() argument
[all …]
Dmath.c653 const int bit_index = index & 31; in v128_right_shift() local
662 if (bit_index == 0) { in v128_right_shift()
674 b = x->v32[from] << bit_index; in v128_right_shift()
676 b |= x->v32[from-1] >> (32-bit_index); in v128_right_shift()
692 const int bit_index = index & 31; in v128_left_shift() local
699 if (bit_index == 0) { in v128_left_shift()
704 x->v32[i] = (x->v32[i+base_index] << bit_index) ^ in v128_left_shift()
705 (x->v32[i+base_index+1] >> (32 - bit_index)); in v128_left_shift()
706 x->v32[4 - base_index-1] = x->v32[4-1] << bit_index; in v128_left_shift()
/external/srtp/crypto/include/
Ddatatypes.h447 #define _bitvector_get_bit(v, bit_index) \ argument
449 ((((v)->word[((bit_index) >> 5)]) >> ((bit_index) & 31)) & 1) \
453 #define _bitvector_set_bit(v, bit_index) \ argument
455 (((v)->word[((bit_index) >> 5)] |= ((uint32_t)1 << ((bit_index) & 31)))) \
458 #define _bitvector_clear_bit(v, bit_index) \ argument
460 (((v)->word[((bit_index) >> 5)] &= ~((uint32_t)1 << ((bit_index) & 31)))) \
470 #define bitvector_get_bit(v, bit_index) _bitvector_get_bit(v, bit_index) argument
471 #define bitvector_set_bit(v, bit_index) _bitvector_set_bit(v, bit_index) argument
472 #define bitvector_clear_bit(v, bit_index) _bitvector_clear_bit(v, bit_index) argument
478 bitvector_get_bit(const bitvector_t *v, int bit_index);
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.cc514 string GetBitFieldNameForBit(int bit_index) { in GetBitFieldNameForBit() argument
515 return GetBitFieldName(bit_index / 32); in GetBitFieldNameForBit()
518 string GenerateGetBit(int bit_index) { in GenerateGetBit() argument
519 string var_name = GetBitFieldNameForBit(bit_index); in GenerateGetBit()
520 int bit_in_var_index = bit_index % 32; in GenerateGetBit()
527 string GenerateSetBit(int bit_index) { in GenerateSetBit() argument
528 string var_name = GetBitFieldNameForBit(bit_index); in GenerateSetBit()
529 int bit_in_var_index = bit_index % 32; in GenerateSetBit()
536 string GenerateClearBit(int bit_index) { in GenerateClearBit() argument
537 string var_name = GetBitFieldNameForBit(bit_index); in GenerateClearBit()
[all …]
Djavanano_helpers.h155 string GetBitFieldNameForBit(int bit_index);
160 string GenerateGetBit(int bit_index);
165 string GenerateSetBit(int bit_index);
170 string GenerateClearBit(int bit_index);
176 string GenerateDifferentBit(int bit_index);
/external/srtp/googlepatches/
Dvidyo-3-srtp-ws.patch31 -bitvector_set_bit(bitvector_t *v, int bit_index);
34 -bitvector_get_bit(const bitvector_t *v, int bit_index);
72 +#define _bitvector_get_bit(v, bit_index) \
74 + ((((v)->word[((bit_index) >> 5)]) >> ((bit_index) & 31)) & 1) \
78 +#define _bitvector_set_bit(v, bit_index) \
80 + (((v)->word[((bit_index) >> 5)] |= ((uint32_t)1 << ((bit_index) & 31)))) \
83 +#define _bitvector_clear_bit(v, bit_index) \
85 + (((v)->word[((bit_index) >> 5)] &= ~((uint32_t)1 << ((bit_index) & 31)))) \
95 +#define bitvector_get_bit(v, bit_index) _bitvector_get_bit(v, bit_index)
96 +#define bitvector_set_bit(v, bit_index) _bitvector_set_bit(v, bit_index)
[all …]
/external/v8/src/
Dsafepoint-table.cc32 int bit_index = reg_index & (kBitsPerByte - 1); in HasRegisterAt() local
33 return (bits_[byte_index] & (1 << bit_index)) != 0; in HasRegisterAt()
183 int bit_index = index & (kBitsPerByte - 1); in Emit() local
184 bits[byte_index] |= (1 << bit_index); in Emit()
192 int bit_index = index & (kBitsPerByte - 1); in Emit() local
193 bits[byte_index] |= (1U << bit_index); in Emit()
Dframes.cc696 int bit_index = index & (kBitsPerByte - 1); in IterateCompiledFrame() local
697 if ((safepoint_bits[byte_index] & (1U << bit_index)) != 0) { in IterateCompiledFrame()
/external/tinyalsa/
Dtinypcminfo.c95 inline const char *pcm_get_format_name(unsigned bit_index) in pcm_get_format_name() argument
97 return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL; in pcm_get_format_name()
/external/opencv3/modules/flann/include/opencv2/flann/
Dlsh_table.h395 size_t bit_index = 1; in getKey() local
405 subsignature += (feature_block & lowest_bit) ? bit_index : 0; in getKey()
409 bit_index <<= 1; in getKey()
/external/clang/test/Analysis/
Dmisc-ps.m1297 unsigned int bit_index;
1298 for (bit_index = 0;
1299 bit_index < 24;
1300 bit_index++) {
1301 switch ((0x01 << bit_index) & bit_mask) {
/external/v8/src/x87/
Dmacro-assembler-x87.cc1749 int bit_index) { in BooleanBitTest() argument
1750 bit_index += kSmiTagSize + kSmiShiftSize; in BooleanBitTest()
1752 int byte_index = bit_index / kBitsPerByte; in BooleanBitTest()
1753 int byte_bit_index = bit_index & (kBitsPerByte - 1); in BooleanBitTest()
Dmacro-assembler-x87.h625 void BooleanBitTest(Register object, int field_offset, int bit_index);
/external/v8/src/ia32/
Dmacro-assembler-ia32.cc1783 int bit_index) { in BooleanBitTest() argument
1784 bit_index += kSmiTagSize + kSmiShiftSize; in BooleanBitTest()
1786 int byte_index = bit_index / kBitsPerByte; in BooleanBitTest()
1787 int byte_bit_index = bit_index & (kBitsPerByte - 1); in BooleanBitTest()
Dmacro-assembler-ia32.h636 void BooleanBitTest(Register object, int field_offset, int bit_index);
/external/libpng/contrib/libtests/
Dpngvalid.c525 png_uint_32 bit_index, result; in sample() local
529 bit_index = x; in sample()
534 bit_index *= 3; in sample()
537 bit_index += x; /* Alpha channel */ in sample()
541 bit_index += sample_index * bit_depth; in sample()
545 row += bit_index >> 3; in sample()
563 bit_index &= 7; in sample()
566 bit_index = 8-bit_index-bit_depth; in sample()
568 return (result >> bit_index) & ((1U<<bit_depth)-1); in sample()
/external/v8/src/x64/
Dmacro-assembler-x64.h838 int bit_index);