Home
last modified time | relevance | path

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

1234567891011

/external/libcxx/test/depr/depr.c.headers/
Dstdint_h.pass.cpp23 static_assert(sizeof(int8_t)*CHAR_BIT == 8, in main()
28 static_assert(sizeof(int16_t)*CHAR_BIT == 16, in main()
33 static_assert(sizeof(int32_t)*CHAR_BIT == 32, in main()
38 static_assert(sizeof(int64_t)*CHAR_BIT == 64, in main()
44 static_assert(sizeof(uint8_t)*CHAR_BIT == 8, in main()
49 static_assert(sizeof(uint16_t)*CHAR_BIT == 16, in main()
54 static_assert(sizeof(uint32_t)*CHAR_BIT == 32, in main()
59 static_assert(sizeof(uint64_t)*CHAR_BIT == 64, in main()
65 static_assert(sizeof(int_least8_t)*CHAR_BIT >= 8, in main()
70 static_assert(sizeof(int_least16_t)*CHAR_BIT >= 16, in main()
[all …]
/external/libcxx/test/language.support/cstdint/cstdint.syn/
Dcstdint.pass.cpp23 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8, in main()
28 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16, in main()
33 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32, in main()
38 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64, in main()
44 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8, in main()
49 static_assert(sizeof(std::uint16_t)*CHAR_BIT == 16, in main()
54 static_assert(sizeof(std::uint32_t)*CHAR_BIT == 32, in main()
59 static_assert(sizeof(std::uint64_t)*CHAR_BIT == 64, in main()
65 static_assert(sizeof(std::int_least8_t)*CHAR_BIT >= 8, in main()
70 static_assert(sizeof(std::int_least16_t)*CHAR_BIT >= 16, in main()
[all …]
/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()
52 lli = 1LL << (sizeof(long long) * CHAR_BIT - 2); in test()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_reader.c40 int shift = BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vp9_reader_fill()
42 const int bits_left = (int)((buffer_end - buffer) * CHAR_BIT); in vp9_reader_fill()
43 const int x = shift + CHAR_BIT - bits_left; in vp9_reader_fill()
52 count += CHAR_BIT; in vp9_reader_fill()
54 shift -= CHAR_BIT; in vp9_reader_fill()
65 while (r->count > CHAR_BIT && r->count < BD_VALUE_SIZE) { in vp9_reader_find_end()
66 r->count -= CHAR_BIT; in vp9_reader_find_end()
Dvp9_read_bit_buffer.c13 return rb->bit_offset / CHAR_BIT + (rb->bit_offset % CHAR_BIT > 0); in vp9_rb_bytes_read()
18 const size_t p = off / CHAR_BIT; in vp9_rb_read_bit()
19 const int q = CHAR_BIT - 1 - (int)off % CHAR_BIT; in vp9_rb_read_bit()
Dvp9_reader.h29 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
53 unsigned int split = (r->range * prob + (256 - prob)) >> CHAR_BIT; in vp9_read()
61 bigsplit = (BD_VALUE)split << (BD_VALUE_SIZE - CHAR_BIT); in vp9_read()
/external/bison/src/
DSbitset.h28 (((NBITS) + CHAR_BIT - 1) / CHAR_BIT)
30 (((SELF) + (INDEX) / CHAR_BIT))
32 (1 << (CHAR_BIT - 1 - (INDEX) % CHAR_BIT))
34 (UCHAR_MAX << (CHAR_BIT - 1 - ((NBITS) - 1) % CHAR_BIT))
87 for ((INDEX) = ((ITER)-(SELF))*CHAR_BIT; \
88 (INDEX) < (NBITS) && (SELF)+(INDEX)/CHAR_BIT < (ITER)+1; \
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/decoder/
Dvp9_reader.c47 int shift = BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vp9_reader_fill()
50 const size_t bits_left = bytes_left * CHAR_BIT; in vp9_reader_fill()
51 const int x = (int)(shift + CHAR_BIT - bits_left); in vp9_reader_fill()
67 count += CHAR_BIT; in vp9_reader_fill()
69 shift -= CHAR_BIT; in vp9_reader_fill()
83 while (r->count > CHAR_BIT && r->count < BD_VALUE_SIZE) { in vp9_reader_find_end()
84 r->count -= CHAR_BIT; in vp9_reader_find_end()
Dvp9_read_bit_buffer.c13 return (rb->bit_offset + CHAR_BIT - 1) / CHAR_BIT; in vp9_rb_bytes_read()
18 const size_t p = off / CHAR_BIT; in vp9_rb_read_bit()
19 const int q = CHAR_BIT - 1 - (int)off % CHAR_BIT; in vp9_rb_read_bit()
Dvp9_reader.h30 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
61 unsigned int split = (r->range * prob + (256 - prob)) >> CHAR_BIT; in vp9_read()
69 bigsplit = (BD_VALUE)split << (BD_VALUE_SIZE - CHAR_BIT); in vp9_read()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_write_bit_buffer.c14 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vp9_rb_bytes_written()
19 const int p = off / CHAR_BIT; in vp9_wb_write_bit()
20 const int q = CHAR_BIT - 1 - off % CHAR_BIT; in vp9_wb_write_bit()
21 if (q == CHAR_BIT -1) { in vp9_wb_write_bit()
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/
Dvp9_write_bit_buffer.c15 return wb->bit_offset / CHAR_BIT + (wb->bit_offset % CHAR_BIT > 0); in vp9_wb_bytes_written()
20 const int p = off / CHAR_BIT; in vp9_wb_write_bit()
21 const int q = CHAR_BIT - 1 - off % CHAR_BIT; in vp9_wb_write_bit()
22 if (q == CHAR_BIT -1) { in vp9_wb_write_bit()
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/decoder/
Ddboolhuff.c43 int shift = VP8_BD_VALUE_SIZE - CHAR_BIT - (count + CHAR_BIT); in vp8dx_bool_decoder_fill()
45 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill()
46 int x = (int)(shift + CHAR_BIT - bits_left); in vp8dx_bool_decoder_fill()
66 count += CHAR_BIT; in vp8dx_bool_decoder_fill()
70 shift -= CHAR_BIT; in vp8dx_bool_decoder_fill()
/external/bison/lib/
Dfloat+.h138 #define SIZEOF_FLT ((FLT_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
139 #define SIZEOF_DBL ((DBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
140 #define SIZEOF_LDBL ((LDBL_TOTAL_BIT + CHAR_BIT - 1) / CHAR_BIT)
Dfcntl.c56 unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; in dupfd()
112 index = (unsigned int) duplicated_fd / CHAR_BIT; in dupfd()
122 fds_to_close[index] |= 1 << ((unsigned int) duplicated_fd % CHAR_BIT); in dupfd()
131 duplicated_fd < fds_to_close_bound * CHAR_BIT; in dupfd()
133 if ((fds_to_close[duplicated_fd / CHAR_BIT] in dupfd()
134 >> (duplicated_fd % CHAR_BIT)) in dupfd()
/external/libcxx/test/utilities/template.bitset/bitset.members/
Dto_ullong.pass.cpp20 …onst std::size_t M = sizeof(unsigned long long) * CHAR_BIT < N ? sizeof(unsigned long long) * CHAR… in test_to_ullong()
21 …:size_t X = M == 0 ? sizeof(unsigned long long) * CHAR_BIT - 1 : sizeof(unsigned long long) * CHAR… in test_to_ullong()
Dto_ulong.pass.cpp21 … const std::size_t M = sizeof(unsigned long) * CHAR_BIT < N ? sizeof(unsigned long) * CHAR_BIT : N; in test_to_ulong()
22 …nst std::size_t X = M == 0 ? sizeof(unsigned long) * CHAR_BIT - 1 : sizeof(unsigned long) * CHAR_B… in test_to_ulong()
/external/stlport/stlport/stl/
D_bitset.c26 #define __BITS_PER_WORD (CHAR_BIT * sizeof(unsigned long))
97 return __i*__BITS_PER_WORD + __j*CHAR_BIT + in _M_do_find_first()
100 __thisword >>= CHAR_BIT; in _M_do_find_first()
129 __thisword >>= _S_whichbyte(__prev) * CHAR_BIT; in _M_do_find_next()
134 return __i*__BITS_PER_WORD + __j*CHAR_BIT + in _M_do_find_next()
137 __thisword >>= CHAR_BIT; in _M_do_find_next()
151 return __i*__BITS_PER_WORD + __j*CHAR_BIT + in _M_do_find_next()
154 __thisword >>= CHAR_BIT; in _M_do_find_next()
/external/libvpx/libvpx/vp8/decoder/
Ddboolhuff.c44 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill()
45 int x = (int)(shift + CHAR_BIT - bits_left); in vp8dx_bool_decoder_fill()
65 count += CHAR_BIT; in vp8dx_bool_decoder_fill()
69 shift -= CHAR_BIT; in vp8dx_bool_decoder_fill()
/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/stlport/test/unit/
Dmacro_checks.cpp5 #if !defined (CHAR_BIT)
6 # error Missing CHAR_BIT definition.
9 #if (CHAR_BIT < 0)
/external/compiler-rt/test/builtins/Unit/
Dfixsfdi_test.c36 char assumption_2[sizeof(su_int)*CHAR_BIT == 32] = {0};
37 char assumption_3[sizeof(float)*CHAR_BIT == 32] = {0};
Dfixunssfsi_test.c37 char assumption_2[sizeof(su_int)*CHAR_BIT == 32] = {0};
38 char assumption_3[sizeof(float)*CHAR_BIT == 32] = {0};
Dfloatundisf_test.c37 char assumption_2[sizeof(du_int)*CHAR_BIT == 64] = {0};
38 char assumption_3[sizeof(float)*CHAR_BIT == 32] = {0};
Dfloatdisf_test.c37 char assumption_2[sizeof(di_int)*CHAR_BIT == 64] = {0};
38 char assumption_3[sizeof(float)*CHAR_BIT == 32] = {0};

1234567891011