[libc-commits] [libc] a86cc83 - [libc] Move fma and fmaf into generic dir
Alex Brachet via libc-commits
libc-commits at lists.llvm.org
Thu Mar 23 11:43:42 PDT 2023
Author: Alex Brachet
Date: 2023-03-23T18:43:09Z
New Revision: a86cc8341de91c48ff724aa07766bc0dbefaa248
URL: https://github.com/llvm/llvm-project/commit/a86cc8341de91c48ff724aa07766bc0dbefaa248
DIFF: https://github.com/llvm/llvm-project/commit/a86cc8341de91c48ff724aa07766bc0dbefaa248.diff
LOG: [libc] Move fma and fmaf into generic dir
Differential Revision: https://reviews.llvm.org/D146740
Added:
libc/src/math/generic/fma.cpp
libc/src/math/generic/fmaf.cpp
Modified:
libc/src/math/CMakeLists.txt
libc/src/math/generic/CMakeLists.txt
Removed:
libc/src/math/fma.cpp
libc/src/math/fmaf.cpp
################################################################################
diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt
index 78bab469c28d..bc9a5d7a237f 100644
--- a/libc/src/math/CMakeLists.txt
+++ b/libc/src/math/CMakeLists.txt
@@ -40,30 +40,6 @@ function(add_math_entrypoint_object name)
)
endfunction()
-add_entrypoint_object(
- fmaf
- SRCS
- fmaf.cpp
- HDRS
- fmaf.h
- DEPENDS
- libc.src.__support.FPUtil.fma
- COMPILE_OPTIONS
- -O3
-)
-
-add_entrypoint_object(
- fma
- SRCS
- fma.cpp
- HDRS
- fma.h
- DEPENDS
- libc.src.__support.FPUtil.fma
- COMPILE_OPTIONS
- -O3
-)
-
add_math_entrypoint_object(acosf)
add_math_entrypoint_object(acoshf)
@@ -107,6 +83,9 @@ add_math_entrypoint_object(floor)
add_math_entrypoint_object(floorf)
add_math_entrypoint_object(floorl)
+add_math_entrypoint_object(fma)
+add_math_entrypoint_object(fmaf)
+
add_math_entrypoint_object(fmax)
add_math_entrypoint_object(fmaxf)
add_math_entrypoint_object(fmaxl)
diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt
index 09aefc67d1b5..9fe0fce1c8a6 100644
--- a/libc/src/math/generic/CMakeLists.txt
+++ b/libc/src/math/generic/CMakeLists.txt
@@ -1491,3 +1491,27 @@ add_entrypoint_object(
COMPILE_OPTIONS
-O3
)
+
+add_entrypoint_object(
+ fmaf
+ SRCS
+ fmaf.cpp
+ HDRS
+ ../fmaf.h
+ DEPENDS
+ libc.src.__support.FPUtil.fma
+ COMPILE_OPTIONS
+ -O3
+)
+
+add_entrypoint_object(
+ fma
+ SRCS
+ fma.cpp
+ HDRS
+ ../fma.h
+ DEPENDS
+ libc.src.__support.FPUtil.fma
+ COMPILE_OPTIONS
+ -O3
+)
diff --git a/libc/src/math/fma.cpp b/libc/src/math/generic/fma.cpp
similarity index 100%
rename from libc/src/math/fma.cpp
rename to libc/src/math/generic/fma.cpp
diff --git a/libc/src/math/fmaf.cpp b/libc/src/math/generic/fmaf.cpp
similarity index 100%
rename from libc/src/math/fmaf.cpp
rename to libc/src/math/generic/fmaf.cpp
More information about the libc-commits
mailing list