aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/arith.texi4
-rw-r--r--manual/lang.texi32
2 files changed, 35 insertions, 1 deletions
diff --git a/manual/arith.texi b/manual/arith.texi
index 23b93736ac..dc3c367d49 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -110,7 +110,9 @@ minimum possible values for each integer data type. The macro names
follow these examples: @code{INT32_MAX}, @code{UINT8_MAX},
@code{INT_FAST32_MIN}, @code{INT_LEAST64_MIN}, @code{UINTMAX_MAX},
@code{INTMAX_MAX}, @code{INTMAX_MIN}. Note that there are no macros for
-unsigned integer minima. These are always zero.
+unsigned integer minima. These are always zero. Similiarly, there
+are macros such as @code{INTMAX_WIDTH} for the width of these types.
+Those macros for integer type widths come from TS 18661-1:2014.
@cindex maximum possible integer
@cindex minimum possible integer
diff --git a/manual/lang.texi b/manual/lang.texi
index 3705df0599..ae7d5be30e 100644
--- a/manual/lang.texi
+++ b/manual/lang.texi
@@ -703,6 +703,38 @@ int}, @code{long long int} and @code{unsigned long long int},
respectively.
@end table
+Further such macros are defined in @file{stdint.h}. Apart from those
+for types specified by width (@pxref{Integers}), the following are
+defined.
+
+@table @code
+@comment stdint.h
+@comment ISO
+@item INTPTR_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx UINTPTR_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx PTRDIFF_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx SIG_ATOMIC_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx SIZE_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx WCHAR_WIDTH
+@comment stdint.h
+@comment ISO
+@itemx WINT_WIDTH
+
+These are the widths of the types @code{intptr_t}, @code{uintptr_t},
+@code{ptrdiff_t}, @code{sig_atomic_t}, @code{size_t}, @code{wchar_t}
+and @code{wint_t}, respectively.
+@end table
+
@node Range of Type
@subsection Range of an Integer Type
@cindex integer type range