Skip to content

Commit 2faba58

Browse files
committed
[numerics] Improved indexing of macros
1 parent 824173b commit 2faba58

File tree

1 file changed

+34
-63
lines changed

1 file changed

+34
-63
lines changed

source/numerics.tex

Lines changed: 34 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,20 @@
9898
\indexlibraryglobal{feholdexcept}%
9999
\indexlibraryglobal{fesetenv}%
100100
\indexlibraryglobal{feupdateenv}%
101-
\indexlibraryglobal{FE_ALL_EXCEPT}%
102-
\indexlibraryglobal{FE_DIVBYZERO}%
103-
\indexlibraryglobal{FE_INEXACT}%
104-
\indexlibraryglobal{FE_INVALID}%
105-
\indexlibraryglobal{FE_OVERFLOW}%
106-
\indexlibraryglobal{FE_UNDERFLOW}%
107-
\indexlibraryglobal{FE_DOWNWARD}%
108-
\indexlibraryglobal{FE_TONEAREST}%
109-
\indexlibraryglobal{FE_TOWARDZERO}%
110-
\indexlibraryglobal{FE_UPWARD}%
111-
\indexlibraryglobal{FE_DFL_ENV}%
112101
\begin{codeblock}
113-
#define FE_ALL_EXCEPT @\seebelow@
114-
#define FE_DIVBYZERO @\seebelow@ // optional
115-
#define FE_INEXACT @\seebelow@ // optional
116-
#define FE_INVALID @\seebelow@ // optional
117-
#define FE_OVERFLOW @\seebelow@ // optional
118-
#define FE_UNDERFLOW @\seebelow@ // optional
102+
#define @\libmacro{FE_ALL_EXCEPT}@ @\seebelow@
103+
#define @\libmacro{FE_DIVBYZERO}@ @\seebelow@ // optional
104+
#define @\libmacro{FE_INEXACT}@ @\seebelow@ // optional
105+
#define @\libmacro{FE_INVALID}@ @\seebelow@ // optional
106+
#define @\libmacro{FE_OVERFLOW}@ @\seebelow@ // optional
107+
#define @\libmacro{FE_UNDERFLOW}@ @\seebelow@ // optional
119108

120-
#define FE_DOWNWARD @\seebelow@ // optional
121-
#define FE_TONEAREST @\seebelow@ // optional
122-
#define FE_TOWARDZERO @\seebelow@ // optional
123-
#define FE_UPWARD @\seebelow@ // optional
109+
#define @\libmacro{FE_DOWNWARD}@ @\seebelow@ // optional
110+
#define @\libmacro{FE_TONEAREST}@ @\seebelow@ // optional
111+
#define @\libmacro{FE_TOWARDZERO}@ @\seebelow@ // optional
112+
#define @\libmacro{FE_UPWARD}@ @\seebelow@ // optional
124113

125-
#define FE_DFL_ENV @\seebelow@
114+
#define @\libmacro{FE_DFL_ENV}@ @\seebelow@
126115

127116
namespace std {
128117
// types
@@ -9128,23 +9117,6 @@
91289117
\rSec2[cmath.syn]{Header \tcode{<cmath>} synopsis}
91299118

91309119
\indexheader{cmath}%
9131-
\indexlibraryglobal{FP_FAST_FMA}%
9132-
\indexlibraryglobal{FP_FAST_FMAF}%
9133-
\indexlibraryglobal{FP_FAST_FMAL}%
9134-
\indexlibraryglobal{FP_ILOGB0}%
9135-
\indexlibraryglobal{FP_ILOGBNAN}%
9136-
\indexlibraryglobal{FP_INFINITE}%
9137-
\indexlibraryglobal{FP_NAN}%
9138-
\indexlibraryglobal{FP_NORMAL}%
9139-
\indexlibraryglobal{FP_SUBNORMAL}%
9140-
\indexlibraryglobal{FP_ZERO}%
9141-
\indexlibraryglobal{HUGE_VAL}%
9142-
\indexlibraryglobal{HUGE_VALF}%
9143-
\indexlibraryglobal{HUGE_VALL}%
9144-
\indexlibraryglobal{INFINITY}%
9145-
\indexlibraryglobal{MATH_ERREXCEPT}%
9146-
\indexlibraryglobal{MATH_ERRNO}%
9147-
\indexlibraryglobal{NAN}%
91489120
\indexlibraryglobal{abs}%
91499121
\indexlibraryglobal{acos}%
91509122
\indexlibraryglobal{acosf}%
@@ -9273,7 +9245,6 @@
92739245
\indexlibraryglobal{lround}%
92749246
\indexlibraryglobal{lroundf}%
92759247
\indexlibraryglobal{lroundl}%
9276-
\indexlibraryglobal{math_errhandling}%
92779248
\indexlibraryglobal{modf}%
92789249
\indexlibraryglobal{modff}%
92799250
\indexlibraryglobal{modfl}%
@@ -9338,25 +9309,25 @@
93389309
using double_t = @\seebelow@;
93399310
}
93409311

9341-
#define HUGE_VAL @\seebelow@
9342-
#define HUGE_VALF @\seebelow@
9343-
#define HUGE_VALL @\seebelow@
9344-
#define INFINITY @\seebelow@
9345-
#define NAN @\seebelow@
9346-
#define FP_INFINITE @\seebelow@
9347-
#define FP_NAN @\seebelow@
9348-
#define FP_NORMAL @\seebelow@
9349-
#define FP_SUBNORMAL @\seebelow@
9350-
#define FP_ZERO @\seebelow@
9351-
#define FP_FAST_FMA @\seebelow@
9352-
#define FP_FAST_FMAF @\seebelow@
9353-
#define FP_FAST_FMAL @\seebelow@
9354-
#define FP_ILOGB0 @\seebelow@
9355-
#define FP_ILOGBNAN @\seebelow@
9356-
#define MATH_ERRNO @\seebelow@
9357-
#define MATH_ERREXCEPT @\seebelow@
9358-
9359-
#define math_errhandling @\seebelow@
9312+
#define @\libmacro{HUGE_VAL}@ @\seebelow@
9313+
#define @\libmacro{HUGE_VALF}@ @\seebelow@
9314+
#define @\libmacro{HUGE_VALL}@ @\seebelow@
9315+
#define @\libmacro{INFINITY}@ @\seebelow@
9316+
#define @\libmacro{NAN}@ @\seebelow@
9317+
#define @\libmacro{FP_INFINITE}@ @\seebelow@
9318+
#define @\libmacro{FP_NAN}@ @\seebelow@
9319+
#define @\libmacro{FP_NORMAL}@ @\seebelow@
9320+
#define @\libmacro{FP_SUBNORMAL}@ @\seebelow@
9321+
#define @\libmacro{FP_ZERO}@ @\seebelow@
9322+
#define @\libmacro{FP_FAST_FMA}@ @\seebelow@
9323+
#define @\libmacro{FP_FAST_FMAF}@ @\seebelow@
9324+
#define @\libmacro{FP_FAST_FMAL}@ @\seebelow@
9325+
#define @\libmacro{FP_ILOGB0}@ @\seebelow@
9326+
#define @\libmacro{FP_ILOGBNAN}@ @\seebelow@
9327+
#define @\libmacro{MATH_ERRNO}@ @\seebelow@
9328+
#define @\libmacro{MATH_ERREXCEPT}@ @\seebelow@
9329+
9330+
#define @\libmacro{math_errhandling}@ @\seebelow@
93609331

93619332
namespace std {
93629333
constexpr @\placeholdernc{floating-point-type}@ acos(@\placeholdernc{floating-point-type}@ x);
@@ -18255,7 +18226,7 @@
1825518226

1825618227
\pnum
1825718228
\remarks
18258-
It is unspecified whether \tcode{errno}\iref{errno} is accessed.
18229+
It is unspecified whether \tcode{\libmacro{errno}}\iref{errno} is accessed.
1825918230
\end{itemdescr}
1826018231

1826118232
\begin{itemdecl}
@@ -18366,7 +18337,7 @@
1836618337

1836718338
\pnum
1836818339
\remarks
18369-
It is unspecified whether \tcode{errno}\iref{errno} is accessed.
18340+
It is unspecified whether \tcode{\libmacro{errno}}\iref{errno} is accessed.
1837018341
\end{itemdescr}
1837118342

1837218343
\begin{itemdecl}
@@ -18439,7 +18410,7 @@
1843918410

1844018411
\pnum
1844118412
\remarks
18442-
It is unspecified whether \tcode{errno}\iref{errno} is accessed.
18413+
It is unspecified whether \tcode{\libmacro{errno}}\iref{errno} is accessed.
1844318414
\end{itemdescr}
1844418415

1844518416
\begin{itemdecl}
@@ -18954,7 +18925,7 @@
1895418925

1895518926
\indexheader{stdckdint.h}%
1895618927
\begin{codeblock}
18957-
#define @\libglobal{__STDC_VERSION_STDCKDINT_H__}@ 202311L
18928+
#define @\libmacro{__STDC_VERSION_STDCKDINT_H__}@ 202311L
1895818929

1895918930
template<class type1, class type2, class type3>
1896018931
bool ckd_add(type1* result, type2 a, type3 b);

0 commit comments

Comments
 (0)