diff options
| author | Julius Ikkala <julius.ikkala@gmail.com> | 2025-05-10 01:50:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-09 18:50:14 -0400 |
| commit | 029672ee08f5ecb710e84cf1ccc625e826ff9a29 (patch) | |
| tree | e5d9c263c2e26455bc3daa652173a6c1ab21ebf2 /include | |
| parent | dbf05f8dca79d7bb166038652d968554d486c9fd (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/slang.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
