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
#if defined( B2_CPU_ARM )
staticinlinevoidb2Pause( void )
{
__asm__ __volatile__( "isb\n" );
}
#elif defined( B2_CPU_X86_X64 )
#include<immintrin.h>staticinlinevoidb2Pause( void )
{
_mm_pause();
}
#elsestaticinlinevoidb2Pause( void )
{
// no threading will likely be used in web assembly
}
#endif
yields error C2065: '__asm__': undeclared identifier when compiling on Visual Studio 2022 targeting ARM64 platform.
I tried to solve replacing the __asm__ __volatile__( "isb\n" ); call with __dmb(_ARM64_BARRIER_SY); and it compiled, however the CrossPlatformTest failed, which might be due to my change:
Starting Box2D unit tests
======================================
test passed: MathTest
subtest passed: AABBTest
test passed: CollisionTest
subtest passed: MultithreadingTest
step = 300, hash = 0x769fe476
condition false: sleepStep == 310
subtest failed: CrossPlatformTest
test failed: DeterminismTest
The text was updated successfully, but these errors were encountered:
In solver.c, the following code
yields
error C2065: '__asm__': undeclared identifier
when compiling on Visual Studio 2022 targeting ARM64 platform.I tried to solve replacing the
__asm__ __volatile__( "isb\n" );
call with__dmb(_ARM64_BARRIER_SY);
and it compiled, however theCrossPlatformTest
failed, which might be due to my change:The text was updated successfully, but these errors were encountered: