Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux Define min3/max3. XXX...
details: https://anonhg.NetBSD.org/src/rev/f16780e1c6dd
branches: trunk
changeset: 365836:f16780e1c6dd
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:55:32 2018 +0000
description:
Define min3/max3. XXX: Multiple evaluation. Hope it's OK!
diffstat:
sys/external/bsd/common/include/linux/kernel.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 9acad2fc8b31 -r f16780e1c6dd sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 06:55:23 2018 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h Mon Aug 27 06:55:32 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.15 2018/08/27 06:53:55 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.16 2018/08/27 06:55:32 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -76,6 +76,9 @@
#define clamp_t(T, X, MIN, MAX) min_t(T, max_t(T, X, MIN), MAX)
#define clamp(X, MN, MX) MIN(MAX(X, MN), MX)
+#define min3(X, Y, Z) MIN(X, MIN(Y, Z))
+#define max3(X, Y, Z) MAX(X, MAX(Y, Z))
+
/*
* Rounding to nearest.
*/
Home |
Main Index |
Thread Index |
Old Index