Skip to content

Commit 17df742

Browse files
committed
[libc][doc] Update implementation status of exp2f, sinhf, and coshf.
1 parent 62fe67f commit 17df742

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

libc/docs/math.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ atan2
125125
atanh
126126
cbrt
127127
cos |check| |check|
128-
cosh
128+
cosh |check|
129129
erf
130130
erfc
131131
exp |check|
@@ -141,7 +141,7 @@ log2 |check|
141141
pow
142142
sin |check| |check|
143143
sincos |check| |check|
144-
sinh
144+
sinh |check|
145145
sqrt |check| |check| |check|
146146
tan
147147
tanh
@@ -155,6 +155,7 @@ Accuracy of Higher Math Functions
155155
<Func> <Func_f> (float) <Func> (double) <Func_l> (long double)
156156
============== ================ =============== ======================
157157
cos |check| large
158+
cosh |check|
158159
exp |check|
159160
exp2 |check|
160161
expm1 |check|
@@ -166,6 +167,7 @@ log1p |check|
166167
log2 |check|
167168
sin |check| large
168169
sincos 0.776 ULPs large
170+
sinh |check|
169171
sqrt |check| |check| |check|
170172
============== ================ =============== ======================
171173

@@ -197,11 +199,15 @@ Performance
197199
| +-----------+-------------------+-----------+-------------------+ +------------+-------------------------+--------------+---------------+
198200
| | LLVM libc | Reference (glibc) | LLVM libc | Reference (glibc) | | CPU | OS | Compiler | Special flags |
199201
+==============+===========+===================+===========+===================+=====================================+============+=========================+==============+===============+
200-
| cosf | 14 | 32 | 56 | 59 | :math:`[0, 2\pi]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | |
202+
| cosf | 14 | 32 | 56 | 59 | :math:`[0, 2\pi]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
203+
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
204+
| coshf | 23 | 20 | 73 | 49 | :math:`[-10, 10]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
201205
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
202206
| expf | 9 | 7 | 44 | 38 | :math:`[-10, 10]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
203207
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
204208
| exp2f | 8 | 6 | 35 | 23 | :math:`[-10, 10]` | i5-1135G7 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
209+
+ +-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
210+
| | 11 | 6 | 49 | 31 | :math:`[-10, 10]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
205211
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
206212
| expm1f | 9 | 44 | 42 | 121 | :math:`[-10, 10]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
207213
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
@@ -225,6 +231,8 @@ Performance
225231
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
226232
| sinf | 13 | 25 | 54 | 57 | :math:`[-\pi, \pi]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
227233
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
234+
| sinhf | 23 | 64 | 73 | 141 | :math:`[-10, 10]` | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA |
235+
+--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
228236

229237
References
230238
==========

0 commit comments

Comments
 (0)