Optix Code/Optix7.3.0LightFIeldViewer/SDK/lib/DemandLoading/Util/DeviceSet.cpp
// Return the 1-based index of the least significant bit that's set.
Return the 1-based index of the least significant bit that's set.
Return the 1 - based index of the least significant bit that ' s set .
inline unsigned int leastSignificantBitSet( unsigned int x )
{
    if( !x )
        return 0;
    unsigned int bit = 33U;
    do
    {
        x <<= 1;
        bit--;
    } while( x );
    return bit;
}
inline unsigned int leastSignificantBitSet ( unsigned int x ) { if ( ! x ) return 0 ; unsigned int bit = 33U ; do { x <<= 1 ; bit -- ; } while ( x ) ; return bit ; }
Return the 1-based index of the least significant bit that's set.
Return the 1 - based index of the least significant bit that ' s set .