[libc-commits] [libc] 17df742 - [libc][doc] Update implementation status of exp2f, sinhf, and coshf.

Tue Ly via libc-commits libc-commits at lists.llvm.org
Sun Jul 31 13:33:32 PDT 2022


Author: Tue Ly
Date: 2022-07-31T16:32:21-04:00
New Revision: 17df74214c97bab8546d24c84a6aa7054b1449e1

URL: https://github.com/llvm/llvm-project/commit/17df74214c97bab8546d24c84a6aa7054b1449e1
DIFF: https://github.com/llvm/llvm-project/commit/17df74214c97bab8546d24c84a6aa7054b1449e1.diff

LOG: [libc][doc] Update implementation status of exp2f, sinhf, and coshf.

Added: 
    

Modified: 
    libc/docs/math.rst

Removed: 
    


################################################################################
diff  --git a/libc/docs/math.rst b/libc/docs/math.rst
index 2e94b8ae3ed25..f5f6a6e515b0a 100644
--- a/libc/docs/math.rst
+++ b/libc/docs/math.rst
@@ -125,7 +125,7 @@ atan2
 atanh
 cbrt
 cos            |check|          |check|
-cosh
+cosh           |check|
 erf
 erfc
 exp            |check|
@@ -141,7 +141,7 @@ log2           |check|
 pow
 sin            |check|          |check|
 sincos         |check|          |check|
-sinh
+sinh           |check|
 sqrt           |check|          |check|         |check|
 tan
 tanh
@@ -155,6 +155,7 @@ Accuracy of Higher Math Functions
 <Func>         <Func_f> (float) <Func> (double) <Func_l> (long double)
 ============== ================ =============== ======================
 cos            |check|          large
+cosh           |check|
 exp            |check|
 exp2           |check|
 expm1          |check|
@@ -166,6 +167,7 @@ log1p          |check|
 log2           |check|
 sin            |check|          large
 sincos         0.776 ULPs       large
+sinh           |check|
 sqrt           |check|          |check|         |check|
 ============== ================ =============== ======================
 
@@ -197,11 +199,15 @@ Performance
 |              +-----------+-------------------+-----------+-------------------+                                     +------------+-------------------------+--------------+---------------+
 |              | LLVM libc | Reference (glibc) | LLVM libc | Reference (glibc) |                                     | CPU        | OS                      | Compiler     | Special flags |
 +==============+===========+===================+===========+===================+=====================================+============+=========================+==============+===============+
-| cosf         |        14 |                32 |        56 |                59 | :math:`[0, 2\pi]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 |               |
+| cosf         |        14 |                32 |        56 |                59 | :math:`[0, 2\pi]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
++--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
+| coshf        |        23 |                20 |        73 |                49 | :math:`[-10, 10]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
 | expf         |         9 |                 7 |        44 |                38 | :math:`[-10, 10]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
 | exp2f        |         8 |                 6 |        35 |                23 | :math:`[-10, 10]`                   | i5-1135G7  | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
++              +-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
+|              |        11 |                 6 |        49 |                31 | :math:`[-10, 10]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
 | expm1f       |         9 |                44 |        42 |               121 | :math:`[-10, 10]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
@@ -225,6 +231,8 @@ Performance
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
 | sinf         |        13 |                25 |        54 |                57 | :math:`[-\pi, \pi]`                 | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
 +--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
+| sinhf        |        23 |                64 |        73 |               141 | :math:`[-10, 10]`                   | Ryzen 1700 | Ubuntu 20.04 LTS x86_64 | Clang 12.0.0 | FMA           |
++--------------+-----------+-------------------+-----------+-------------------+-------------------------------------+------------+-------------------------+--------------+---------------+
 
 References
 ==========


        


More information about the libc-commits mailing list