Go to the source code of this file.
◆ declare_4_minmax
| #define declare_4_minmax |
( |
|
Type | ) |
|
Value: static Type
min(Type a, Type b, Type
c, Type d); \
static Type
max(Type a, Type b, Type
c, Type d)
Definition at line 51 of file math.h.
◆ declare_binary_minmax
| #define declare_binary_minmax |
( |
|
Type | ) |
|
Value: static Type
min(Type a, Type b); \
static Type
max(Type a, Type b)
Definition at line 43 of file math.h.
◆ implement_4_minmax
| #define implement_4_minmax |
( |
|
Type | ) |
|
Value: inline Type
Math::min(Type a, Type b, Type
c, Type d) { \
Type r1 =
min(a, b), r2 =
min(
c, d); \
} \
\
inline Type
Math::max(Type a, Type b, Type
c, Type d) { \
Type r1 =
max(a, b), r2 =
max(
c, d); \
}
Definition at line 60 of file math.h.
◆ implement_binary_minmax
| #define implement_binary_minmax |
( |
|
Type | ) |
|
Value: inline Type
Math::min(Type a, Type b) {
return a < b ? a : b; } \
inline Type
Math::max(Type a, Type b) {
return a > b ? a : b; }
Definition at line 47 of file math.h.
◆ implement_binary_minmax()
| implement_binary_minmax |
( |
int |
| ) |
|