Skip to content

Commit

Permalink
[support, etc.] New subclause "Arithmetic types".
Browse files Browse the repository at this point in the history
The new subclause contains both "integer types" (<cstdint>)
and "extended floating-point types" (<stdfloat>).

Previously, the newly added <stdfloat> synopsis was somewhat
disconnected and out of context.
  • Loading branch information
tkoeppe committed Sep 17, 2022
1 parent c70087a commit 7fd8b62
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@
\ref{support.types} & Types & \tcode{<cstddef>} \\ \rowsep
\ref{support.limits} & Implementation properties &
\tcode{<cfloat>}, \tcode{<climits>}, \tcode{<limits>}, \tcode{<version>} \\ \rowsep
\ref{cstdint} & Integer types & \tcode{<cstdint>} \\ \rowsep
\ref{support.arith.types}& Arithmetic types & \tcode{<cstdint>}, \tcode{<stdfloat>} \\ \rowsep
\ref{support.start.term} & Start and termination & \tcode{<cstdlib>} \\ \rowsep
\ref{support.dynamic} & Dynamic memory management & \tcode{<new>} \\ \rowsep
\ref{support.rtti} & Type identification & \tcode{<typeinfo>} \\ \rowsep
Expand Down
2 changes: 1 addition & 1 deletion source/preprocessor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
in~\ref{support.limits}. For the purposes of this token conversion and evaluation
all signed and unsigned integer types
act as if they have the same representation as, respectively,
\tcode{intmax_t} or \tcode{uintmax_t}\iref{cstdint}.
\tcode{intmax_t} or \tcode{uintmax_t}\iref{cstdint.syn}.
\begin{note}
Thus on an
implementation where \tcode{std::numeric_limits<int>::max()} is \tcode{0x7FFF}
Expand Down
18 changes: 9 additions & 9 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
\tcode{<cstddef>}, \tcode{<cstdlib>} \\ \rowsep
\ref{support.limits} & Implementation properties &
\tcode{<cfloat>}, \tcode{<climits>}, \tcode{<limits>}, \tcode{<version>} \\ \rowsep
\ref{cstdint} & Integer types & \tcode{<cstdint>} \\ \rowsep
\ref{stdfloat.syn} & Header \libheader{stdfloat} synopsis & \tcode{<stdfloat>} \\ \rowsep
\ref{support.arith.types} & Arithmetic types & \tcode{<cstdint>}, \tcode{<stdfloat>} \\ \rowsep
\ref{support.start.term} & Start and termination & \tcode{<cstdlib>} \\ \rowsep
\ref{support.dynamic} & Dynamic memory management & \tcode{<new>} \\ \rowsep
\ref{support.rtti} & Type identification & \tcode{<typeinfo>} \\ \rowsep
Expand Down Expand Up @@ -1844,18 +1843,15 @@

\xrefc{5.2.4.2.2}

\rSec1[cstdint]{Integer types}
\rSec1[support.arith.types]{Arithmetic types}

\rSec2[cstdint.general]{General}
\rSec2[cstdint.syn]{Header \tcode{<cstdint>} synopsis}

\pnum
The header
\libheaderref{cstdint}
The header \libheader{cstdint}
supplies integer types having specified widths, and
macros that specify limits of integer types.

\rSec2[cstdint.syn]{Header \tcode{<cstdint>} synopsis}

\indexheader{cstdint}%
\indexlibraryglobal{int8_t}%
\indexlibraryglobal{int16_t}%
Expand Down Expand Up @@ -1997,7 +1993,11 @@
respectively.
\end{note}

\rSec1[stdfloat.syn]{Header \tcode{<stdfloat>} synopsis}
\rSec2[stdfloat.syn]{Header \tcode{<stdfloat>} synopsis}

\pnum
The header \libheader{stdfloat} defines macros that describe
the presence of optional extended floating-point types\iref{basic.extended.fp}.

\indexheader{stdfloat}%
\begin{codeblock}
Expand Down
2 changes: 2 additions & 0 deletions source/xrefdelta.tex
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@

% P1467R9 Extended floating-point types and standard names
\movedxref{complex.special}{complex.members}
\movedxref{cstdint}{support.arith.types}
\removedxref{cstdint.general}

% LWG3659 Consider ATOMIC_FLAG_INIT undeprecation
\removedxref{depr.atomics.flag}
Expand Down

0 comments on commit 7fd8b62

Please sign in to comment.