listener_contact: Use JPH CountTrailingZeros

This commit is contained in:
Joshua Ashton 2022-09-09 02:00:33 +01:00
parent cfae6a7997
commit 6636409b10
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ private:
{ {
for ( uint32 thread = m_Mask; thread; thread &= thread - 1 ) for ( uint32 thread = m_Mask; thread; thread &= thread - 1 )
{ {
const uint32 i = tzcnt( thread ); const uint32 i = JPH::CountTrailingZeros( thread );
for ( auto &event : m_Events[ i ] ) for ( auto &event : m_Events[ i ] )
func( event ); func( event );