Function from_uint32


#include <include/EASTL/bitset.h>

void from_uint32(uint32_t value)


No description yet.


Lines 2018-2025 in include/EASTL/bitset.h. Line 397 in include/EASTL/bitset.h.

template <size_t N, typename WordType>
inline void bitset<N, WordType>::from_uint32(uint32_t value)
    if((N & kBitsPerWordMask) || (N == 0)) // If there are any high bits to clear... (If we didn't have this check, then the code below would do the wrong thing when N == 32.
        mWord[kWordCount - 1] &= ~(static_cast<word_type>(~static_cast<word_type>(0)) << (N & kBitsPerWordMask)); // This clears any high unused bits. We need to do this so that shift operations proceed correctly.

Add Discussion as Guest

Log in