Home
last modified time | relevance | path

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

/openbmc/phosphor-host-ipmid/include/ipmid/message/
H A Dpack.hpp59 p.appendBits(CHAR_BIT, static_cast<uint8_t>(i >> (8 * byteIndex))); in PackBytesUnaligned()
142 static_assert(N <= (details::bitStreamSize - CHAR_BIT)); in op()
148 size_t appendCount = std::min(count, static_cast<size_t>(CHAR_BIT)); in op()
150 bits >>= CHAR_BIT; in op()
175 static_assert(N <= (details::bitStreamSize - CHAR_BIT)); in op()
179 size_t appendCount = std::min(count, size_t(CHAR_BIT)); in op()
181 bits >>= CHAR_BIT; in op()
H A Dunpack.hpp45 i |= static_cast<NumericType>(*pointer) << (CHAR_BIT * byteIndex); in UnpackBytes()
55 i |= static_cast<NumericType>(p.popBits(CHAR_BIT)) in UnpackBytesUnaligned()
56 << (CHAR_BIT * byteIndex); in UnpackBytesUnaligned()
84 if (p.fillBits(CHAR_BIT * sizeof(t))) in op()
167 static_assert(N <= (details::bitStreamSize - CHAR_BIT)); in op()
208 static_assert(N <= (details::bitStreamSize - CHAR_BIT)); in op()
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dmessage.hpp91 static constexpr size_t bitStreamSize = ((sizeof(uint64_t) + 1) * CHAR_BIT);
224 if (bitCount < CHAR_BIT) in drain()
231 size_t bitsOut = std::min(static_cast<size_t>(CHAR_BIT), bitCount); in drain()
341 if (count > (details::bitStreamSize - CHAR_BIT)) in fillBits()
353 bitCount += CHAR_BIT; in fillBits()
/openbmc/linux/drivers/media/rc/
H A Dir-rc6-decoder.c37 #ifndef CHAR_BIT
38 #define CHAR_BIT 8 /* Normally in <limits.h> */ macro
185 if (data->count++ < CHAR_BIT * sizeof data->body) { in ir_rc6_decode()
222 if (data->count > CHAR_BIT * sizeof data->body) { in ir_rc6_decode()
/openbmc/linux/drivers/staging/media/atomisp/pci/hive_isp_css_include/
H A Dtype_support.h34 #define CHAR_BIT (8) macro
/openbmc/phosphor-host-ipmid/test/message/
H A Dpack.cpp77 ASSERT_EQ(p.size(), types::nrFixedBits<decltype(v)> / CHAR_BIT); in TEST()
94 CHAR_BIT); in TEST()
123 ASSERT_EQ(p.size(), v.size() / CHAR_BIT); in TEST()
138 ASSERT_EQ(p.size(), (v1.size() + v2.size()) / CHAR_BIT); in TEST()
153 ASSERT_EQ(p.size(), v.size() / CHAR_BIT); in TEST()
/openbmc/libmctp/
H A Dcrc32.c18 for (i = 0; i < CHAR_BIT; i++) in crc32()
/openbmc/pldm/libpldmresponder/
H A Dpdr_utils.cpp179 for (int i = 0; i < CHAR_BIT; i++) in parseStateSensorPDR()
183 possibleStates.insert(possibleStatesPos * CHAR_BIT + i); in parseStateSensorPDR()
/openbmc/phosphor-net-ipmid/
H A Dcommand_table.hpp21 return static_cast<uint8_t>(command >> CHAR_BIT); in netFnLun()
/openbmc/openpower-vpd-parser/
H A Dtypes.hpp18 static_assert((8 == CHAR_BIT), "A byte is not 8 bits!");
/openbmc/openbmc/poky/meta/recipes-support/lzop/lzop/
H A Dacinclude.m4221 #if !defined(CHAR_BIT) || (CHAR_BIT != 8)
222 # include "error CHAR_BIT"
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/audiofile/files/
H A D0001-fix-negative-shift-constants.patch32 static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
/openbmc/qemu/include/qemu/
H A Dbitops.h19 #define BITS_PER_BYTE CHAR_BIT
H A Dosdep.h354 #define TYPE_WIDTH(t) (sizeof(t) * CHAR_BIT)
/openbmc/qemu/dump/
H A Ddump.c1210 size_t bits_per_buf = bitmap_bufsize * CHAR_BIT; in set_dump_bitmap()
1245 byte = (pfn % bits_per_buf) / CHAR_BIT; in set_dump_bitmap()
1246 bit = (pfn % bits_per_buf) % CHAR_BIT; in set_dump_bitmap()
1356 size_t bits_per_buf = bitmap_bufsize * CHAR_BIT; in write_dump_bitmap()
1920 tmp = DIV_ROUND_UP(DIV_ROUND_UP(s->max_mapnr, CHAR_BIT), in dump_init()
/openbmc/linux/tools/perf/util/
H A Dgenelf_debug.c212 int size = sizeof(long) * CHAR_BIT; in emit_signed_LEB128()
/openbmc/qemu/ui/
H A Dvnc-auth-sasl.c613 ssf = keysize * CHAR_BIT; /* tls key size is bytes, sasl wants bits */ in start_auth_sasl()
/openbmc/pldm/pldmtool/
H A Dpldm_platform_cmd.cpp791 for (int i = 0; i < CHAR_BIT; i++) in printPossibleStates()
795 pstates << (possibleStatesPos * CHAR_BIT + i); in printPossibleStates()
/openbmc/docs/architecture/
H A Dipmi-architecture.md297 static_assert(N <= (details::bitStreamSize - CHAR_BIT));
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dsparsebit.c166 #define MASK_BITS (sizeof(mask_t) * CHAR_BIT)