[libcxx-commits] [libcxx] 77ccf63 - [libc++][doc] Extended integral type support

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 27 09:22:12 PDT 2022


Author: Mark de Wever
Date: 2022-07-27T18:22:08+02:00
New Revision: 77ccf63ef0c476feb3c19d403de05e0665986589

URL: https://github.com/llvm/llvm-project/commit/77ccf63ef0c476feb3c19d403de05e0665986589
DIFF: https://github.com/llvm/llvm-project/commit/77ccf63ef0c476feb3c19d403de05e0665986589.diff

LOG: [libc++][doc] Extended integral type support

This addresses a request during the review of D128929.

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D129310

Added: 
    

Modified: 
    libcxx/docs/UsingLibcxx.rst

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/UsingLibcxx.rst b/libcxx/docs/UsingLibcxx.rst
index 40a8d9a36838..1a3d2f3e5319 100644
--- a/libcxx/docs/UsingLibcxx.rst
+++ b/libcxx/docs/UsingLibcxx.rst
@@ -444,3 +444,20 @@ distributions with types other than ``short``, ``int``, ``long``, ``long long``,
 undefined. As an extension, libc++ supports instantiating ``binomial_distribution``, ``discrete_distribution``,
 ``geometric_distribution``, ``negative_binomial_distribution``, ``poisson_distribution``, and ``uniform_int_distribution``
 with ``int8_t``, ``__int128_t`` and their unsigned versions.
+
+Extended integral type support
+------------------------------
+
+Several platforms support the 128-bit integral types ``__int128_t`` and
+``__uint128_t``. When these types are present they can be used in the headers
+as required by the Standard:
+
+* ``<bits>``
+* ``<charconv>``
+* ``<functional>``
+* ``<type_traits>``
+
+As an extension these types can be used in the following headers:
+
+* ``<format>``
+* ``<random>``


        


More information about the libcxx-commits mailing list