From 1abba25401c59a5634955ca44806834186e6b082 Mon Sep 17 00:00:00 2001 From: Julius Ikkala Date: Sat, 25 Jan 2025 01:50:45 +0200 Subject: 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 --- source/slang/slang-intrinsic-expand.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') 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); -- cgit v1.2.3