[U-Boot] [PATCH v3 2/6] include/common.h: remove DIV_ROUND definition
Masahiro Yamada
yamada.m at jp.panasonic.com
Thu Nov 6 19:03:27 CET 2014
All the references of DIV_ROUND have been replaced with
DIV_ROUND_CLOSEST. Remove DIV_ROUND.
Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
Changes in v3: None
Changes in v2: None
include/common.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/common.h b/include/common.h
index ecf7fca..c9fe386 100644
--- a/include/common.h
+++ b/include/common.h
@@ -950,7 +950,6 @@ static inline phys_addr_t map_to_sysmem(const void *ptr)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1))
-#define DIV_ROUND(n,d) (((n) + ((d)/2)) / (d))
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
--
1.9.1
More information about the U-Boot
mailing list