[libc-commits] [libc] [libc] finish documenting c23 additions (PR #84383)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Mar 7 13:43:43 PST 2024


https://github.com/nickdesaulniers updated https://github.com/llvm/llvm-project/pull/84383

>From 214a1925ad2e1e4b943712cfd0bd65fe1443a963 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 7 Mar 2024 13:36:16 -0800
Subject: [PATCH 1/2] [libc] finish documenting c23 additions

Such as stdlib.h and tgmath.h
---
 libc/docs/c23.rst | 52 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 51 insertions(+), 1 deletion(-)

diff --git a/libc/docs/c23.rst b/libc/docs/c23.rst
index ec9d40947cc567..95a2f7e7a819d3 100644
--- a/libc/docs/c23.rst
+++ b/libc/docs/c23.rst
@@ -107,9 +107,59 @@ Additions:
   * unreachable
 * stdlib.h
 
+  * strfromd
+  * strfromf
+  * strfroml
   * free_sized
   * free_aligned_sized
   * memalignment
 * tgmath.h
 
-  * <TODO>
+  * acospi
+  * asinpi
+  * atan2pi
+  * atanpi
+  * compoundn
+  * cospi
+  * erf
+  * exp10m1
+  * exp10
+  * exp2m1
+  * fmaximum
+  * fmaximum_mag
+  * fmaximum_num
+  * fmaximum_mag_num
+  * fminimum
+  * fminimum_mag
+  * fminimum_num
+  * fminimum_mag_num
+  * fromfpx
+  * fromfp
+  * llogb
+  * log10p1
+  * log2p1
+  * logp1
+  * nextdown
+  * nextup
+  * pown
+  * powr
+  * rootn
+  * roundeven
+  * rsqrt
+  * scalbn
+  * sinpi
+  * tanpi
+  * ufromfpx
+  * ufromfp
+  * fadd
+  * dadd
+  * fsub
+  * dsub
+  * fmul
+  * dmul
+  * fdiv
+  * ddiv
+  * ffma
+  * dfma
+  * fsqrt
+  * dsqrt

>From 7a5102dab6ec1aeebfc99d38a867abe15fb34c86 Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Thu, 7 Mar 2024 13:41:13 -0800
Subject: [PATCH 2/2] sort according to appearance in Annex B and section 7

---
 libc/docs/c23.rst | 60 ++++++++++++++++++++++-------------------------
 1 file changed, 28 insertions(+), 32 deletions(-)

diff --git a/libc/docs/c23.rst b/libc/docs/c23.rst
index 95a2f7e7a819d3..17458aed72147b 100644
--- a/libc/docs/c23.rst
+++ b/libc/docs/c23.rst
@@ -15,36 +15,15 @@ Implementation Status
 
 (It's helpful to review 'Annex B (Informative) Library Summary' for these.)
 
-New headers:
-
-* stdbit.h
-* stdckdint.h (|check|, macros are only defined with `__GNUC__` builtins)
 
 Additions:
 
-* uchar.h
-
-  * mbrtoc8
-  * c8rtomb
-  * char*_t
-
-* string.h
-
-  * memset_explicit
-  * memccpy
-  * strdup
-  * strndup
-
-* time.h
-
-  * gmtime_r
-  * localtime_r
-  * timegm
-  * timespec_getres
-  * strftime conversion specifiers
+* fenv.h
 
-    * 0b
-    * 0B
+  * fesetexcept
+  * fetestexceptflag
+  * fegetmode
+  * fesetmode
 * math.h
 
   * acospi*
@@ -96,12 +75,8 @@ Additions:
   * dfmal
   * fsqrt*
   * dsqrtl
-* fenv.h
-
-  * fesetexcept
-  * fetestexceptflag
-  * fegetmode
-  * fesetmode
+* stdbit.h (New header)
+* stdckdint.h (New header) |check|
 * stddef.h
 
   * unreachable
@@ -113,6 +88,12 @@ Additions:
   * free_sized
   * free_aligned_sized
   * memalignment
+* string.h
+
+  * memset_explicit
+  * memccpy
+  * strdup
+  * strndup
 * tgmath.h
 
   * acospi
@@ -163,3 +144,18 @@ Additions:
   * dfma
   * fsqrt
   * dsqrt
+* time.h
+
+  * gmtime_r
+  * localtime_r
+  * timegm
+  * timespec_getres
+  * strftime conversion specifiers
+
+    * 0b
+    * 0B
+* uchar.h
+
+  * mbrtoc8
+  * c8rtomb
+  * char*_t



More information about the libc-commits mailing list