summaryrefslogtreecommitdiffstats
path: root/test-file-zero-alloc-speed.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-file-zero-alloc-speed.c')
-rw-r--r--test-file-zero-alloc-speed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-file-zero-alloc-speed.c b/test-file-zero-alloc-speed.c
index dacb1c2..55090c2 100644
--- a/test-file-zero-alloc-speed.c
+++ b/test-file-zero-alloc-speed.c
@@ -31,7 +31,7 @@
#include <sys/mount.h>
#include <sys/mman.h>
-#define GB (1024 * 1024 * 1024)
+#define GB(x) ((unsigned long long)x << 30)
int pre_test_setup(char *source, char *target, char *fstype,
unsigned long mntflags, char *mntopts, char *name, int *fd)
@@ -217,7 +217,7 @@ int main(int argc, char **argv)
return -1;
}
- filesize = atol(argv[1]) * GB;
+ filesize = GB(atol(argv[1]));
source = argv[2];
target = argv[3];
fstype = argv[4];