Function from_uint64

Synopsis

#include <include/EASTL/bitset.h>

void from_uint64(uint64_t value)

Description

No description yet.

Source

Lines 1239-1248 in include/EASTL/bitset.h. Line 198 in include/EASTL/bitset.h.

template <typename WordType>
inline void BitsetBase<1, WordType>::from_uint64(uint64_t value)
{
    #if(EA_PLATFORM_WORD_SIZE == 4)
        EASTL_ASSERT(value <= 0xffffffff);
        mWord[0] = static_cast<word_type>(value);   // This potentially loses data, but that's what the user is requesting.
    #else
        mWord[0] = static_cast<word_type>(value);
    #endif
}





Add Discussion as Guest

Log in