summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2010-12-13 11:53:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-12-14 15:15:06 +0100
commitf9a11ecfef1983b33a619d7eab479c8390c2838d (patch)
tree0ca78d0dff933b7f491f600a917f39673b6e1eaf /include/common.h
parentb08d7dfecf0c9078a1c22171a02a0e401a292e37 (diff)
downloadbarebox-f9a11ecfef1983b33a619d7eab479c8390c2838d.tar.gz
barebox-f9a11ecfef1983b33a619d7eab479c8390c2838d.tar.xz
Make DIV_ROUND_UP macro globally available
Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index a14bfc10ce..be83a31a72 100644
--- a/include/common.h
+++ b/include/common.h
@@ -222,4 +222,6 @@ extern const char version_string[];
#define IOMEM(addr) ((void __force __iomem *)(addr))
+#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
+
#endif /* __COMMON_H_ */