diff --git a/src/shared/def.h b/src/shared/def.h index 62455ab..9d6bd74 100644 --- a/src/shared/def.h +++ b/src/shared/def.h @@ -66,6 +66,6 @@ typedef signed long long i64; #define U64_C(x) x##ULL #define KiB(count) (U64_C(count) * U64_C(1024)) -#define MiB(count) (U64_C(count) * U64_C(1024) * U64_C(1024)) -#define GiB(count) (U64_C(count) * U64_C(1024) * U64_C(1024) * U64_C(1024)) -#define TiB(count) (U64_C(count) * U64_C(1024) * U64_C(1024) * U64_C(1024) * U64_C(1024)) \ No newline at end of file +#define MiB(count) (U64_C(count) * KiB(1024)) +#define GiB(count) (U64_C(count) * MiB(1024)) +#define TiB(count) (U64_C(count) * GiB(1024)) \ No newline at end of file