[libc-commits] [PATCH] D123539: [libc] Fix nested namespace issues with multiply_add.h.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Apr 11 14:30:22 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5c6db1dc9b83: [libc] Fix nested namespace issues with multiply_add.h. (authored by lntue).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123539/new/
https://reviews.llvm.org/D123539
Files:
libc/src/__support/FPUtil/multiply_add.h
Index: libc/src/__support/FPUtil/multiply_add.h
===================================================================
--- libc/src/__support/FPUtil/multiply_add.h
+++ libc/src/__support/FPUtil/multiply_add.h
@@ -22,10 +22,17 @@
return x * y + z;
}
+} // namespace fputil
+} // namespace __llvm_libc
+
#if defined(LIBC_TARGET_HAS_FMA)
+
// FMA instructions are available.
#include "FMA.h"
+namespace __llvm_libc {
+namespace fputil {
+
template <> inline float multiply_add<float>(float x, float y, float z) {
return fma(x, y, z);
}
@@ -33,9 +40,10 @@
template <> inline double multiply_add<double>(double x, double y, double z) {
return fma(x, y, z);
}
-#endif // LIBC_TARGET_HAS_FMA
} // namespace fputil
} // namespace __llvm_libc
+#endif // LIBC_TARGET_HAS_FMA
+
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_MULTIPLY_ADD_H
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123539.422037.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220411/5c92b867/attachment.bin>
More information about the libc-commits
mailing list