OSDN Git Service

Moved DIV_ROUND_UP macro to header to be used by other units.
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 13 Dec 2009 10:19:52 +0000 (10:19 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 13 Dec 2009 10:19:52 +0000 (10:19 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@65 60bc1c72-a15a-11de-b98f-4500b42dc123

libexfat/exfat.h
libexfat/node.c

index b73c3ab..81b1bb1 100644 (file)
@@ -32,6 +32,7 @@
 #define CLUSTER_INVALID(c) ((c) == EXFAT_CLUSTER_BAD || (c) == EXFAT_CLUSTER_END)
 
 #define MIN(a, b) ((a) < (b) ? (a) : (b))
+#define DIV_ROUND_UP(x, d) (((x) + (d) - 1) / (d))
 
 struct exfat_node
 {
index 6874182..4fc4bde 100644 (file)
@@ -12,8 +12,6 @@
 #include <string.h>
 #include <inttypes.h>
 
-#define DIV_ROUND_UP(x, d) (((x) + (d) - 1) / (d))
-
 /* on-disk nodes iterator */
 struct iterator
 {