summaryrefslogtreecommitdiffstats
path: root/src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h')
-rw-r--r--src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h b/src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h
index 8974c86..46cfebc 100644
--- a/src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h
+++ b/src/contrib/libngtcp2/ngtcp2/lib/ngtcp2_macro.h
@@ -33,9 +33,6 @@
#include <ngtcp2/ngtcp2.h>
-#define ngtcp2_min(A, B) ((A) < (B) ? (A) : (B))
-#define ngtcp2_max(A, B) ((A) > (B) ? (A) : (B))
-
#define ngtcp2_struct_of(ptr, type, member) \
((type *)(void *)((char *)(ptr)-offsetof(type, member)))
@@ -55,11 +52,6 @@
*/
#define ngtcp2_arraylen(A) (sizeof(A) / sizeof(A[0]))
-/*
- * ngtcp2_max variants but they are inline functions. The
- * intermediate values are stored in parameters so that they are
- * evaluated just once.
- */
#define ngtcp2_max_def(SUFFIX, T) \
static inline T ngtcp2_max_##SUFFIX(T a, T b) { return a < b ? b : a; }
@@ -73,11 +65,6 @@ ngtcp2_max_def(uint32, uint32_t);
ngtcp2_max_def(uint64, uint64_t);
ngtcp2_max_def(size, size_t);
-/*
- * ngtcp2_min variants but they are inline functions. The
- * intermediate values are stored in parameters so that they are
- * evaluated just once.
- */
#define ngtcp2_min_def(SUFFIX, T) \
static inline T ngtcp2_min_##SUFFIX(T a, T b) { return a < b ? a : b; }