Function reset

Synopsis

#include <include/EASTL/bitset.h>

void reset()

Description

No description yet.

Source

Lines 814-827 in include/EASTL/bitset.h. Line 124 in include/EASTL/bitset.h.

template <size_t NW, typename WordType>
inline void BitsetBase<NW, WordType>::reset()
{
    if(NW > 16) // This is a constant expression and should be optimized away.
    {
        // This will be fastest if compiler intrinsic function optimizations are enabled.
        memset(mWord, 0, sizeof(mWord));
    }
    else
    {
        for(size_t i = 0; i < NW; i++)
            mWord[i] = 0;
    }
}





Add Discussion as Guest

Log in