[libclc] [libclc] Move mad to the CLC library (PR #123607)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 20 06:01:04 PST 2025


================
@@ -0,0 +1,4 @@
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __clc_mad(__CLC_GENTYPE a, __CLC_GENTYPE b,
+                                               __CLC_GENTYPE c) {
+  return a * b + c;
----------------
arsenm wrote:

probably should use the pragma to explicitly allow contract 

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


More information about the cfe-commits mailing list