From 6636409b1065008fcd7dcca9c28cba750e0e5f46 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 9 Sep 2022 02:00:33 +0100 Subject: [PATCH] listener_contact: Use JPH CountTrailingZeros --- vphysics_jolt/vjolt_listener_contact.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vphysics_jolt/vjolt_listener_contact.h b/vphysics_jolt/vjolt_listener_contact.h index 4979d7d..cf4f095 100644 --- a/vphysics_jolt/vjolt_listener_contact.h +++ b/vphysics_jolt/vjolt_listener_contact.h @@ -552,7 +552,7 @@ private: { 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 ] ) func( event );