Skip to content

Commit

Permalink
[libc] Move fma and fmaf into generic dir
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D146740
  • Loading branch information
abrachet committed Mar 23, 2023
1 parent 2bc4c3e commit a86cc83
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
27 changes: 3 additions & 24 deletions libc/src/math/CMakeLists.txt
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down
24 changes: 24 additions & 0 deletions libc/src/math/generic/CMakeLists.txt
Expand Up @@ -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
)
File renamed without changes.
File renamed without changes.

0 comments on commit a86cc83

Please sign in to comment.