Fixed MSVC 32-bit x86 build, and added it to CI. (#455)

This commit is contained in:
Branimir Karadžić
2026-10-11 20:08:19 -07:00
committed by GitHub
parent 36b2b6943f
commit 326bddbac8
5 changed files with 29 additions and 10 deletions
+5
View File
@@ -114,8 +114,13 @@ namespace bx
constexpr size_t kSimdSize = sizeof(SimdT);
#if BX_COMPILER_MSVC
# if BX_CPU_X86 && BX_ARCH_32BIT
typedef uint32_t UnalignedU32;
typedef uint64_t UnalignedU64;
# else
typedef __unaligned uint32_t UnalignedU32;
typedef __unaligned uint64_t UnalignedU64;
# endif // BX_CPU_X86 && BX_ARCH_32BIT
#else
typedef uint32_t __attribute__( (aligned(1), may_alias) ) UnalignedU32;
typedef uint64_t __attribute__( (aligned(1), may_alias) ) UnalignedU64;