aboutsummaryrefslogtreecommitdiff
path: root/libc/config
diff options
context:
space:
mode:
authorOverMighty <its.overmighty@gmail.com>2024-06-27 20:44:19 +0200
committerGitHub <noreply@github.com>2024-06-27 14:44:19 -0400
commite34dbb127af0596d07d01b9fa6cab5b2488ff37b (patch)
treeb78ab1a2af570ee4254a32026852ce93d74784a4 /libc/config
parent37fe152e0c9f47b0a9ef9663df1ddecffef6f338 (diff)
downloadllvm-e34dbb127af0596d07d01b9fa6cab5b2488ff37b.zip
llvm-e34dbb127af0596d07d01b9fa6cab5b2488ff37b.tar.gz
llvm-e34dbb127af0596d07d01b9fa6cab5b2488ff37b.tar.bz2
[libc][math][c23] Add f16fma{,l,f128} C23 math function (#96711)
Part of #93566.
Diffstat (limited to 'libc/config')
-rw-r--r--libc/config/linux/aarch64/entrypoints.txt9
-rw-r--r--libc/config/linux/x86_64/entrypoints.txt9
2 files changed, 18 insertions, 0 deletions
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index f23b3da..950dbbe 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -508,7 +508,9 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ceilf16
libc.src.math.copysignf16
libc.src.math.f16divf
+ libc.src.math.f16fma
libc.src.math.f16fmaf
+ libc.src.math.f16fmal
libc.src.math.f16sqrtf
libc.src.math.fabsf16
libc.src.math.fdimf16
@@ -560,6 +562,13 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ufromfpf16
libc.src.math.ufromfpxf16
)
+
+ if(LIBC_TYPES_HAS_FLOAT128)
+ list(APPEND TARGET_LIBM_ENTRYPOINTS
+ # math.h C23 mixed _Float16 and _Float128 entrypoints
+ libc.src.math.f16fmaf128
+ )
+ endif()
endif()
if(LIBC_TYPES_HAS_FLOAT128)
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index bea2eb32e..96df8c8 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -538,7 +538,9 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ceilf16
libc.src.math.copysignf16
libc.src.math.f16divf
+ libc.src.math.f16fma
libc.src.math.f16fmaf
+ libc.src.math.f16fmal
libc.src.math.f16sqrtf
libc.src.math.fabsf16
libc.src.math.fdimf16
@@ -588,6 +590,13 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ufromfpf16
libc.src.math.ufromfpxf16
)
+
+ if(LIBC_TYPES_HAS_FLOAT128)
+ list(APPEND TARGET_LIBM_ENTRYPOINTS
+ # math.h C23 mixed _Float16 and _Float128 entrypoints
+ libc.src.math.f16fmaf128
+ )
+ endif()
endif()
if(LIBC_TYPES_HAS_FLOAT128)