From 029672ee08f5ecb710e84cf1ccc625e826ff9a29 Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Sat, 10 May 2025 01:50:14 +0300 Subject: Fix various intptr_t issues by defining its width in `getIntTypeInfo` (#6786) * Define a bit size for the intptr types * Fix intptr_t sign * Extend intptr test to check for previously broken operations * Fix intptr vector test on CUDA * Handle intptr size in getAnyValueSize * Fix formatting * Try with __ARM_ARCH_ISA_64 * On macs, int64_t != intptr_t Yikes * Move define to prelude header * Also check apple in host-prelude * Fix define location --- include/slang.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/slang.h b/include/slang.h index e61c3cd7f..d65362762 100644 --- a/include/slang.h +++ b/include/slang.h @@ -422,7 +422,7 @@ convention for interface methods. #endif #elif defined(__arm__) #define SLANG_PROCESSOR_ARM 1 -#elif defined(_M_ARM64) || defined(__aarch64__) +#elif defined(_M_ARM64) || defined(__aarch64__) || defined(__ARM_ARCH_ISA_A64) #define SLANG_PROCESSOR_ARM_64 1 #elif defined(__EMSCRIPTEN__) #define SLANG_PROCESSOR_WASM 1 -- cgit v1.2.3