You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template <typename genIUType>
GLM_FUNC_QUALIFIER genIUType highestBitValue(genIUType Value)
{
genIUType tmp = Value;
genIUType result = genIUType(0);
while(tmp)
{
result = (tmp & (~tmp + 1)); // grab lowest bit
tmp &= ~result; // clear lowest bit
}
return result;
}
I think an additional function lowestBitValue might be also useful for users (I needed it when using an bitfield as set, and I wanted to iterate over it)
We've already got a function
highestBitValue
I think an additional function lowestBitValue might be also useful for users (I needed it when using an bitfield as set, and I wanted to iterate over it)
The text was updated successfully, but these errors were encountered: