Searched refs:byteIndex (Results 1 – 3 of 3) sorted by relevance
/openbmc/libbej/src/ |
H A D | bej_common.c | 36 uint8_t byteIndex = sizeof(uint64_t) - 1; in bejIntLengthOfValue() local 39 uint8_t currentByte = (val >> (bitsPerByte * byteIndex)) & 0xFF; in bejIntLengthOfValue() 45 byteIndex--; in bejIntLengthOfValue() 46 currentByte = (val >> (bitsPerByte * byteIndex)) & 0xFF; in bejIntLengthOfValue()
|
/openbmc/phosphor-host-ipmid/include/ipmid/message/ |
H A D | pack.hpp | 46 template <typename NumericType, size_t byteIndex = 0> 49 if constexpr (byteIndex < sizeof(NumericType)) in PackBytes() 51 *pointer = static_cast<uint8_t>(i >> (8 * byteIndex)); in PackBytes() 52 PackBytes<NumericType, byteIndex + 1>(pointer + 1, i); in PackBytes() 56 template <typename NumericType, size_t byteIndex = 0> 59 if constexpr (byteIndex < sizeof(NumericType)) in PackBytesUnaligned() 61 p.appendBits(CHAR_BIT, static_cast<uint8_t>(i >> (8 * byteIndex))); in PackBytesUnaligned() 62 PackBytesUnaligned<NumericType, byteIndex + 1>(p, i); in PackBytesUnaligned()
|
H A D | unpack.hpp | 41 template <typename NumericType, size_t byteIndex = 0> 44 if constexpr (byteIndex < sizeof(NumericType)) in UnpackBytes() 46 i |= static_cast<NumericType>(*pointer) << (CHAR_BIT * byteIndex); in UnpackBytes() 47 UnpackBytes<NumericType, byteIndex + 1>(pointer + 1, i); in UnpackBytes() 51 template <typename NumericType, size_t byteIndex = 0> 54 if constexpr (byteIndex < sizeof(NumericType)) in UnpackBytesUnaligned() 57 << (CHAR_BIT * byteIndex); in UnpackBytesUnaligned() 58 UnpackBytesUnaligned<NumericType, byteIndex + 1>(p, i); in UnpackBytesUnaligned()
|