diff options
| author | Julius Ikkala <julius.ikkala@gmail.com> | 2025-01-25 01:50:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-24 15:50:45 -0800 |
| commit | 1abba25401c59a5634955ca44806834186e6b082 (patch) | |
| tree | f409b1a352beb7bad4e7bc1236800acddbbd3283 /source | |
| parent | 0dd9076db2154d787f6e06b713721e877b746b83 (diff) | |
Add intptr_t abs/min/max operations for CPU & CUDA targets (#6160)
* Add intptr_t abs/min/max operations for CPU & CUDA targets
* Define intptr_t and uintptr_t with CUDACC_RTC
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-intrinsic-expand.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-intrinsic-expand.cpp b/source/slang/slang-intrinsic-expand.cpp index 1f1511e15..56ff2a108 100644 --- a/source/slang/slang-intrinsic-expand.cpp +++ b/source/slang/slang-intrinsic-expand.cpp @@ -704,6 +704,8 @@ const char* IntrinsicExpandContext::_emitSpecial(const char* cursor) CASE(UInt16Type, U16); CASE(UIntType, U32); CASE(UInt64Type, U64); + CASE(IntPtrType, IPTR); + CASE(UIntPtrType, UPTR); CASE(HalfType, F16); CASE(FloatType, F32); CASE(DoubleType, F64); |
