[clang] [Clang] Add `__CLANG_GPU_DISABLE_MATH_WRAPPERS` macro for offloading math (PR #98234)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 07:00:03 PDT 2024


================
@@ -345,4 +349,5 @@ __DEVICE__ float ynf(int __a, float __b) { return __nv_ynf(__a, __b); }
 #pragma pop_macro("__DEVICE_VOID__")
 #pragma pop_macro("__FAST_OR_SLOW")
 
+#endif // __CLANG_GPU_DISABLE_MATH_WRAPPERS
----------------
jhuber6 wrote:

Hm, good question. I added `powi` because that's a reasonable extension / renaming of `pown` that others seemed to have used. A double underscore doesn't quality for that I don't think. I don't think we could put that in the `libm` directly. What does that function do exactly?

https://github.com/llvm/llvm-project/pull/98234


More information about the cfe-commits mailing list