一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
numerics.x
Go to the documentation of this file.
1/** \file
2
3 \license
4 SPDX-FileType: Source
5 SPDX-FileCopyrightText: 2024 Edward Kmett <ekmett@gmail.com>
6 SPDX-License-Identifier: BSD-2-Clause OR Apache-2.0
7 \endlicense */
8
9/// cond xmacro
10X template float scalef(float, float) noexcept;
11X template double scalef(double, double) noexcept;
12
13#if 0
14#define EIN_CMPINT_IMPL(Z,Y) \
15X template bool cmpint<CMPINT::Z,Y>(Y,Y) noexcept;
16#define EIN_CMPINT(Z) \
17 EIN_CMPINT_IMPL(Z,uint8_t) \
18 EIN_CMPINT_IMPL(Z,uint16_t) \
19 EIN_CMPINT_IMPL(Z,uint32_t) \
20 EIN_CMPINT_IMPL(Z,uint64_t) \
21 EIN_CMPINT_IMPL(Z,int8_t) \
22 EIN_CMPINT_IMPL(Z,int16_t) \
23 EIN_CMPINT_IMPL(Z,int32_t) \
24 EIN_CMPINT_IMPL(Z,int64_t)
25EIN_CMPINT(TRUE)
26EIN_CMPINT(FALSE)
27EIN_CMPINT(LT)
28EIN_CMPINT(NLT)
29EIN_CMPINT(LE)
30EIN_CMPINT(NLE)
31EIN_CMPINT(EQ)
32EIN_CMPINT(NE)
33#undef EIN_CMPINT_IMPL
34#undef EIN_CMPINT
35
36#define EIN_CMP_IMPL(Z,Y) \
37X template bool cmp<CMP::Z,Y>(Y,Y) noexcept;
38#define EIN_CMP(Z) \
39 EIN_CMP_IMPL(Z,float) \
40 EIN_CMP_IMPL(Z,double)
41
42EIN_CMP(EQ_OQ)
43EIN_CMP(LT_OS)
44EIN_CMP(LE_OS)
45EIN_CMP(UNORD_Q)
46EIN_CMP(NEQ_UQ)
47EIN_CMP(NLT_US)
48EIN_CMP(NLE_US)
49EIN_CMP(ORD_Q)
50EIN_CMP(EQ_UQ)
51EIN_CMP(NGE_US)
52EIN_CMP(NGT_US)
53EIN_CMP(FALSE_OQ)
54EIN_CMP(NEQ_OQ)
55EIN_CMP(GE_OS)
56EIN_CMP(GT_OS)
57EIN_CMP(TRUE_UQ)
58EIN_CMP(EQ_OS)
59EIN_CMP(LT_OQ)
60EIN_CMP(LE_OQ)
61EIN_CMP(UNORD_S)
62EIN_CMP(NEQ_US)
63EIN_CMP(NLT_UQ)
64EIN_CMP(NLE_UQ)
65EIN_CMP(ORD_S)
66EIN_CMP(EQ_US)
67EIN_CMP(NGE_UQ)
68EIN_CMP(NGT_UQ)
69EIN_CMP(FALSE_OS)
70EIN_CMP(NEQ_OS)
71EIN_CMP(GE_OQ)
72EIN_CMP(GT_OQ)
73EIN_CMP(TRUE_US)
74
75#undef EIN_CMP
76#undef EIN_CMP_IMPL
77#endif
78
79///endcond