From c364f7d0195359901098a1972fdb6221108c8f10 Mon Sep 17 00:00:00 2001 From: nub31 Date: Wed, 31 Dec 2025 01:38:06 +0100 Subject: [PATCH] ... --- src/shared/def.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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