diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt --- a/libc/src/math/CMakeLists.txt +++ b/libc/src/math/CMakeLists.txt @@ -40,30 +40,6 @@ ) 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(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 --- a/libc/src/math/generic/CMakeLists.txt +++ b/libc/src/math/generic/CMakeLists.txt @@ -1491,3 +1491,27 @@ 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 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 rename from libc/src/math/fmaf.cpp rename to libc/src/math/generic/fmaf.cpp