From: Alex Brachet Date: Thu, 23 Mar 2023 18:43:09 +0000 (+0000) Subject: [libc] Move fma and fmaf into generic dir X-Git-Tag: upstream/17.0.6~13834 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a86cc8341de91c48ff724aa07766bc0dbefaa248;p=platform%2Fupstream%2Fllvm.git [libc] Move fma and fmaf into generic dir Differential Revision: https://reviews.llvm.org/D146740 --- diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt index 78bab46..bc9a5d7 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 09aefc6..9fe0fce 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