Home
last modified time | relevance | path

Searched refs:CHAR_BIT (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/external/libcxx/test/std/depr/depr.c.headers/
Dstdint_h.pass.cpp24 static_assert(sizeof(int8_t)*CHAR_BIT == 8, in main()
29 static_assert(sizeof(int16_t)*CHAR_BIT == 16, in main()
34 static_assert(sizeof(int32_t)*CHAR_BIT == 32, in main()
39 static_assert(sizeof(int64_t)*CHAR_BIT == 64, in main()
45 static_assert(sizeof(uint8_t)*CHAR_BIT == 8, in main()
50 static_assert(sizeof(uint16_t)*CHAR_BIT == 16, in main()
55 static_assert(sizeof(uint32_t)*CHAR_BIT == 32, in main()
60 static_assert(sizeof(uint64_t)*CHAR_BIT == 64, in main()
66 static_assert(sizeof(int_least8_t)*CHAR_BIT >= 8, in main()
71 static_assert(sizeof(int_least16_t)*CHAR_BIT >= 16, in main()
[all …]
/external/libcxx/test/std/language.support/cstdint/cstdint.syn/
Dcstdint.pass.cpp25 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8, in main()
30 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16, in main()
35 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32, in main()
40 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64, in main()
46 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8, in main()
51 static_assert(sizeof(std::uint16_t)*CHAR_BIT == 16, in main()
56 static_assert(sizeof(std::uint32_t)*CHAR_BIT == 32, in main()
61 static_assert(sizeof(std::uint64_t)*CHAR_BIT == 64, in main()
67 static_assert(sizeof(std::int_least8_t)*CHAR_BIT >= 8, in main()
72 static_assert(sizeof(std::int_least16_t)*CHAR_BIT >= 16, in main()
[all …]
/external/epid-sdk/epid/common/src/
Dhashsize.c28 return EPID_SHA256_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
30 return EPID_SHA384_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
32 return EPID_SHA512_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
34 return EPID_SHA512_256_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
36 return EPID_SHA3_256_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
38 return EPID_SHA3_384_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
40 return EPID_SHA3_512_DIGEST_BITSIZE / CHAR_BIT; in EpidGetHashSize()
/external/libvpx/libvpx/vpx_dsp/
Dbitreader.c45 const size_t bits_left = bytes_left * CHAR_BIT; in vpx_reader_fill()
46 int shift = BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vpx_reader_fill()
55 const int bits = (shift & 0xfffffff8) + CHAR_BIT; in vpx_reader_fill()
69 const int bits_over = (int)(shift + CHAR_BIT - (int)bits_left); in vpx_reader_fill()
78 count += CHAR_BIT; in vpx_reader_fill()
80 shift -= CHAR_BIT; in vpx_reader_fill()
95 while (r->count > CHAR_BIT && r->count < BD_VALUE_SIZE) { in vpx_reader_find_end()
96 r->count -= CHAR_BIT; in vpx_reader_find_end()
Dbitwriter_buffer.c18 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vpx_wb_bytes_written()
23 const int p = off / CHAR_BIT; in vpx_wb_write_bit()
24 const int q = CHAR_BIT - 1 - off % CHAR_BIT; in vpx_wb_write_bit()
25 if (q == CHAR_BIT - 1) { in vpx_wb_write_bit()
Dbitreader.h29 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
79 unsigned int split = (r->range * prob + (256 - prob)) >> CHAR_BIT; in vpx_read()
86 bigsplit = (BD_VALUE)split << (BD_VALUE_SIZE - CHAR_BIT); in vpx_read()
/external/clang/test/Sema/
Dshift.c5 #define WORD_BIT (sizeof(int) * CHAR_BIT)
32 c <<= CHAR_BIT; // expected-warning {{shift count >= width of type}} in test()
33 c >>= CHAR_BIT; // expected-warning {{shift count >= width of type}} in test()
34 c <<= CHAR_BIT+1; // expected-warning {{shift count >= width of type}} in test()
35 c >>= CHAR_BIT+1; // expected-warning {{shift count >= width of type}} in test()
36 (void)((long)c << CHAR_BIT); in test()
53 lli = 1LL << (sizeof(long long) * CHAR_BIT - 2); in test()
/external/libaom/libaom/aom_dsp/
Dbitwriter_buffer.c23 return (wb->bit_offset % CHAR_BIT == 0); in aom_wb_is_byte_aligned()
27 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in aom_wb_bytes_written()
32 const int p = off / CHAR_BIT; in aom_wb_write_bit()
33 const int q = CHAR_BIT - 1 - off % CHAR_BIT; in aom_wb_write_bit()
34 if (q == CHAR_BIT - 1) { in aom_wb_write_bit()
47 const int p = off / CHAR_BIT; in aom_wb_overwrite_bit()
48 const int q = CHAR_BIT - 1 - off % CHAR_BIT; in aom_wb_overwrite_bit()
/external/v4l2_codec2/vda/
Dvp8_bool_decoder.cc54 static_cast<int>(sizeof(Vp8BoolDecoder::value_) * CHAR_BIT)
105 int shift = VP8_BD_VALUE_BIT - CHAR_BIT - (count_ + CHAR_BIT); in FillDecoder()
107 size_t bits_left = bytes_left * CHAR_BIT; in FillDecoder()
108 int x = shift + CHAR_BIT - static_cast<int>(bits_left); in FillDecoder()
118 count_ += CHAR_BIT; in FillDecoder()
121 shift -= CHAR_BIT; in FillDecoder()
152 DCHECK_LE(num_bits, sizeof(int) * CHAR_BIT); in ReadLiteral()
/external/libvpx/libvpx/vp8/decoder/
Ddboolhuff.c38 int shift = VP8_BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vp8dx_bool_decoder_fill()
40 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill()
41 int x = shift + CHAR_BIT - (int)bits_left; in vp8dx_bool_decoder_fill()
58 count += CHAR_BIT; in vp8dx_bool_decoder_fill()
62 shift -= CHAR_BIT; in vp8dx_bool_decoder_fill()
/external/epid-sdk/epid/member/tiny/math/unittests/
Donetimepad.h55 if (uint8_data.size() > SIZE_MAX / CHAR_BIT) in InitUint8()
64 if (uint32_data.size() * sizeof(uint32_t) > SIZE_MAX / CHAR_BIT) in InitUint32()
79 size_t BitsConsumed() const { return bytes_consumed_ * CHAR_BIT; } in BitsConsumed()
83 size_t num_bytes = num_bits / CHAR_BIT; in Generate()
84 size_t extra_bits = num_bits % CHAR_BIT; in Generate()
114 return (data_.size() - bytes_consumed_) * CHAR_BIT; in BitsAvailable()
/external/libcxx/test/std/utilities/template.bitset/bitset.members/
Dto_ullong.pass.cpp21 …onst std::size_t M = sizeof(unsigned long long) * CHAR_BIT < N ? sizeof(unsigned long long) * CHAR… in test_to_ullong()
23 …ze_t X = is_M_zero ? sizeof(unsigned long long) * CHAR_BIT - 1 : sizeof(unsigned long long) * CHAR… in test_to_ullong()
41 const bool canFit = N < sizeof(unsigned long long) * CHAR_BIT; in test_to_ullong()
Dto_ulong.pass.cpp22 … const std::size_t M = sizeof(unsigned long) * CHAR_BIT < N ? sizeof(unsigned long) * CHAR_BIT : N; in test_to_ulong()
24 … std::size_t X = is_M_zero ? sizeof(unsigned long) * CHAR_BIT - 1 : sizeof(unsigned long) * CHAR_B… in test_to_ulong()
43 const bool canFit = N < sizeof(unsigned long) * CHAR_BIT; in test_to_ulong()
/external/llvm/unittests/ADT/
DPointerEmbeddedIntTest.cpp17 PointerEmbeddedInt<int, CHAR_BIT> I = 42, J = 43; in TEST()
21 EXPECT_EQ(sizeof(uintptr_t) * CHAR_BIT - CHAR_BIT, in TEST()
47 PointerEmbeddedInt<intptr_t, CHAR_BIT> IPos = 42, INeg = -42; in TEST()
51 PointerEmbeddedInt<uintptr_t, CHAR_BIT> U = 42, USaturated = 255; in TEST()
69 PointerEmbeddedInt<int, CHAR_BIT> I = 42; in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DPointerEmbeddedIntTest.cpp17 PointerEmbeddedInt<int, CHAR_BIT> I = 42, J = 43; in TEST()
21 EXPECT_EQ(sizeof(uintptr_t) * CHAR_BIT - CHAR_BIT, in TEST()
47 PointerEmbeddedInt<intptr_t, CHAR_BIT> IPos = 42, INeg = -42; in TEST()
51 PointerEmbeddedInt<uintptr_t, CHAR_BIT> U = 42, USaturated = 255; in TEST()
69 PointerEmbeddedInt<int, CHAR_BIT> I = 42; in TEST()
/external/epid-sdk/epid/common/
Dtypes.h72 unsigned char data[8 / CHAR_BIT]; ///< 8 bit data
76 unsigned char data[16 / CHAR_BIT]; ///< 16 bit data
80 unsigned char data[32 / CHAR_BIT]; ///< 32 bit data
84 unsigned char data[64 / CHAR_BIT]; ///< 64 bit data
88 unsigned char data[128 / CHAR_BIT]; ///< 128 bit data
92 unsigned char data[256 / CHAR_BIT]; ///< 256 bit data
96 unsigned char data[512 / CHAR_BIT]; ///< 512 bit data
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DSmallBitVector.h38 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT,
174 if (sizeof(uintptr_t) * CHAR_BIT == 32) in count()
176 if (sizeof(uintptr_t) * CHAR_BIT == 64) in count()
211 if (sizeof(uintptr_t) * CHAR_BIT == 32) in find_first()
213 if (sizeof(uintptr_t) * CHAR_BIT == 64) in find_first()
229 if (sizeof(uintptr_t) * CHAR_BIT == 32) in find_next()
231 if (sizeof(uintptr_t) * CHAR_BIT == 64) in find_next()
/external/e2fsprogs/intl/
Dvasnprintf.c332 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
342 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
350 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
362 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
371 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
378 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
389 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT in VASNPRINTF()
398 (unsigned int) (sizeof (unsigned long) * CHAR_BIT in VASNPRINTF()
405 (unsigned int) (sizeof (unsigned int) * CHAR_BIT in VASNPRINTF()
468 (unsigned int) (sizeof (void *) * CHAR_BIT in VASNPRINTF()
/external/epid-sdk/epid/member/tpm2/unittests/
Dgetrandom-test.cc51 EXPECT_EQ(kEpidNoErr, Tpm2GetRandom(tpm, length * CHAR_BIT, buf1.data())); in TEST_F()
52 EXPECT_EQ(kEpidNoErr, Tpm2GetRandom(tpm, length * CHAR_BIT, buf2.data())); in TEST_F()
63 EXPECT_EQ(kEpidNoErr, Tpm2GetRandom(tpm, length * CHAR_BIT, buf.data())); in TEST_F()
/external/epid-sdk/epid/common-testhelper/
Dprng-testhelper.h61 unsigned int num_bytes = num_bits / CHAR_BIT; in Generate()
63 unsigned int extra_bits = num_bits % CHAR_BIT; in Generate()
98 unsigned int num_bytes = num_bits / CHAR_BIT; in Generate()
/external/swiftshader/third_party/subzero/src/
DIceUtils.h41 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsInt()
48 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsUint()
57 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(Value)))); in IsAbsoluteUint()
141 ((1 << (CHAR_BIT * sizeof(uint32_t) - __builtin_clz(Size))) - 1) - 1;
/external/llvm/include/llvm/ADT/
DPointerEmbeddedInt.h30 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
36 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
42 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DPointerEmbeddedInt.h33 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
39 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
45 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
/external/epid-sdk/epid/common/1.1/
Dtypes.h45 unsigned char data[80 / CHAR_BIT]; ///< 80 bit data
50 unsigned char data[600 / CHAR_BIT]; ///< 600 bit data
55 unsigned char data[768 / CHAR_BIT]; ///< 768 bit data
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitstreamReader.h541 return NextChar*CHAR_BIT - BitsInCurWord; in GetCurrentBitNo()
546 return BitStream->getErrorOffset() * CHAR_BIT + Position; in getErrorBitNo()
621 return uintptr_t(BitNo/CHAR_BIT) & ~(sizeof(word_t)-1); in getStartWordByteForBit()
626 return unsigned(BitNo & (sizeof(word_t)*CHAR_BIT-1)); in getWordBitNo()
678 BitsInCurWord = BytesRead * CHAR_BIT; in fillCurWord()
682 static const unsigned BitsInWord = sizeof(word_t) * CHAR_BIT; in Read()
761 unsigned BitsToSkip = BitsInCurWord % CHAR_BIT; in SkipToByteBoundary()
814 size_t SkipTo = GetCurrentBitNo() + NumFourBytes*4*CHAR_BIT; in SkipBlock()
815 if (AtEndOfStream() || !canSkipToPos(SkipTo/CHAR_BIT)) in SkipBlock()

12345678910>>...15