[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 5/7] backprots: add rounddown
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2013-06-17 13:21:05
Message-ID: 1371475267-27179-5-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]
---
backport/backport-include/linux/kernel.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h
index 79ad889..42aa91d 100644
--- a/backport/backport-include/linux/kernel.h
+++ b/backport/backport-include/linux/kernel.h
@@ -271,6 +271,15 @@ int hex_to_bin(char ch);
__val > __max ? __max: __val; })
#endif
+#ifndef rounddown
+#define rounddown(x, y) ( \
+{ \
+ typeof(x) __x = (x); \
+ __x - (__x % (y)); \
+} \
+)
+#endif /* rounddown */
+
#endif /* __BACKPORT_KERNEL_H */
/*
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic