diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-02-01 11:02:01 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-02-01 11:02:01 +0000 |
commit | 42cc619dfbc44e263239c2de870bae11ad65810a (patch) | |
tree | 13f7e2f0ad1e9b3c4a36f9ecd4e3e49b1d268120 /manual/stdbit.texi | |
parent | 7c8df0b9441e34928f2d7d70531e3d55e016c32e (diff) | |
download | glibc-42cc619dfbc44e263239c2de870bae11ad65810a.tar.gz glibc-42cc619dfbc44e263239c2de870bae11ad65810a.tar.xz glibc-42cc619dfbc44e263239c2de870bae11ad65810a.zip |
Refer to C23 in place of C2X in glibc
WG14 decided to use the name C23 as the informal name of the next revision of the C standard (notwithstanding the publication date in 2024). Update references to C2X in glibc to use the C23 name. This is intended to update everything *except* where it involves renaming files (the changes involving renaming tests are intended to be done separately). In the case of the _ISOC2X_SOURCE feature test macro - the only user-visible interface involved - support for that macro is kept for backwards compatibility, while adding _ISOC23_SOURCE. Tested for x86_64.
Diffstat (limited to 'manual/stdbit.texi')
-rw-r--r-- | manual/stdbit.texi | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/manual/stdbit.texi b/manual/stdbit.texi index 8688930f12..f74d33903a 100644 --- a/manual/stdbit.texi +++ b/manual/stdbit.texi @@ -4,7 +4,7 @@ This chapter contains information about functions and macros for determining the endianness of integer types and manipulating the bits -of unsigned integers. These functions and macros are from ISO C2X and +of unsigned integers. These functions and macros are from ISO C23 and are declared in the header file @file{stdbit.h}. The following macros describe the endianness of integer types. They @@ -45,7 +45,7 @@ In GCC 14.1 that includes support for @code{unsigned __int128} and @deftypefunx {unsigned int} stdc_leading_zeros_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_leading_zeros_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_leading_zeros_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_leading_zeros} functions count the number of leading (most significant) zero bits in @var{x}, starting from the most @@ -58,7 +58,7 @@ the width of @var{x} in bits. @deftypefunx {unsigned int} stdc_leading_ones_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_leading_ones_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_leading_ones_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_leading_ones} functions count the number of leading (most significant) one bits in @var{x}, starting from the most @@ -70,7 +70,7 @@ significant bit of the argument type. @deftypefunx {unsigned int} stdc_trailing_zeros_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_trailing_zeros_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_trailing_zeros_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_trailing_zeros} functions count the number of trailing (least significant) zero bits in @var{x}, starting from the least @@ -83,7 +83,7 @@ the width of @var{x} in bits. @deftypefunx {unsigned int} stdc_trailing_ones_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_trailing_ones_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_trailing_ones_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_trailing_ones} functions count the number of trailing (least significant) one bits in @var{x}, starting from the least @@ -95,7 +95,7 @@ significant bit of the argument type. @deftypefunx {unsigned int} stdc_first_leading_zero_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_first_leading_zero_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_first_leading_zero_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_first_leading_zero} functions return the position of the most significant zero bit in @var{x}, counting from the most @@ -108,7 +108,7 @@ significant bit of @var{x} as 1, or zero if there is no zero bit in @deftypefunx {unsigned int} stdc_first_leading_one_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_first_leading_one_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_first_leading_one_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_first_leading_one} functions return the position of the most significant one bit in @var{x}, counting from the most @@ -121,7 +121,7 @@ significant bit of @var{x} as 1, or zero if there is no one bit in @deftypefunx {unsigned int} stdc_first_trailing_zero_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_first_trailing_zero_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_first_trailing_zero_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_first_trailing_zero} functions return the position of the least significant zero bit in @var{x}, counting from the least @@ -134,7 +134,7 @@ significant bit of @var{x} as 1, or zero if there is no zero bit in @deftypefunx {unsigned int} stdc_first_trailing_one_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_first_trailing_one_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_first_trailing_one_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_first_trailing_one} functions return the position of the least significant one bit in @var{x}, counting from the least @@ -147,7 +147,7 @@ significant bit of @var{x} as 1, or zero if there is no one bit in @deftypefunx {unsigned int} stdc_count_zeros_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_count_zeros_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_count_zeros_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_count_zeros} functions count the number of zero bits in @var{x}. @@ -158,7 +158,7 @@ The @code{stdc_count_zeros} functions count the number of zero bits in @deftypefunx {unsigned int} stdc_count_ones_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_count_ones_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_count_ones_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_count_ones} functions count the number of one bits in @var{x}. @@ -169,7 +169,7 @@ The @code{stdc_count_ones} functions count the number of one bits in @deftypefunx {_Bool} stdc_has_single_bit_ui (unsigned int @var{x}) @deftypefunx {_Bool} stdc_has_single_bit_ul (unsigned long int @var{x}) @deftypefunx {_Bool} stdc_has_single_bit_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_has_single_bit} functions return whether @var{x} has exactly one bit set to one. @@ -180,7 +180,7 @@ exactly one bit set to one. @deftypefunx {unsigned int} stdc_bit_width_ui (unsigned int @var{x}) @deftypefunx {unsigned int} stdc_bit_width_ul (unsigned long int @var{x}) @deftypefunx {unsigned int} stdc_bit_width_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_bit_width} functions return the minimum number of bits needed to store @var{x}, not counting leading zero bits. If @var{x} @@ -192,7 +192,7 @@ is zero, they return zero. @deftypefunx {unsigned int} stdc_bit_floor_ui (unsigned int @var{x}) @deftypefunx {unsigned long int} stdc_bit_floor_ul (unsigned long int @var{x}) @deftypefunx {unsigned long long int} stdc_bit_floor_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_bit_floor} functions return the largest integer power of two that is less than or equal to @var{x}. If @var{x} is zero, @@ -204,7 +204,7 @@ they return zero. @deftypefunx {unsigned int} stdc_bit_ceil_ui (unsigned int @var{x}) @deftypefunx {unsigned long int} stdc_bit_ceil_ul (unsigned long int @var{x}) @deftypefunx {unsigned long long int} stdc_bit_ceil_ull (unsigned long long int @var{x}) -@standards{C2X, stdbit.h} +@standards{C23, stdbit.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} The @code{stdc_bit_ceil} functions return the smallest integer power of two that is greater than or equal to @var{x}. If this cannot be |