qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-block] [PATCH v7 7/9] qemu/units: add SI decimal units


From: Vladimir Sementsov-Ogievskiy
Subject: [Qemu-block] [PATCH v7 7/9] qemu/units: add SI decimal units
Date: Tue, 18 Jun 2019 14:43:26 +0300

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
 include/qemu/units.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/qemu/units.h b/include/qemu/units.h
index 692db3fbb2..52ccc7445c 100644
--- a/include/qemu/units.h
+++ b/include/qemu/units.h
@@ -17,4 +17,11 @@
 #define PiB     (INT64_C(1) << 50)
 #define EiB     (INT64_C(1) << 60)
 
+#define SI_k 1000LL
+#define SI_M 1000000LL
+#define SI_G 1000000000LL
+#define SI_T 1000000000000LL
+#define SI_P 1000000000000000LL
+#define SI_E 1000000000000000000LL
+
 #endif
-- 
2.18.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]