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 Add clamp to <linux/ke...
details: https://anonhg.NetBSD.org/src/rev/7349f041fe6e
branches: trunk
changeset: 336323:7349f041fe6e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Feb 25 15:50:16 2015 +0000
description:
Add clamp to <linux/kernel.h>.
diffstat:
sys/external/bsd/common/include/linux/kernel.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r f686087a6374 -r 7349f041fe6e sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h Wed Feb 25 15:40:20 2015 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h Wed Feb 25 15:50:16 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.5 2015/02/25 15:11:07 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.6 2015/02/25 15:50:16 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -61,6 +61,7 @@
#define min_t(T, X, Y) MIN(X, Y)
#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)
/*
* Rounding to nearest.
Home |
Main Index |
Thread Index |
Old Index