util: Fix broken build on Haiku
[qemu.git] / include / qemu / units.h
blob692db3fbb26138c850e168d810e2da41a8359214
1 /*
2 * IEC binary prefixes definitions
4 * Copyright (C) 2015 Nikunj A Dadhania, IBM Corporation
5 * Copyright (C) 2018 Philippe Mathieu-Daudé <f4bug@amsat.org>
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef QEMU_UNITS_H
11 #define QEMU_UNITS_H
13 #define KiB (INT64_C(1) << 10)
14 #define MiB (INT64_C(1) << 20)
15 #define GiB (INT64_C(1) << 30)
16 #define TiB (INT64_C(1) << 40)
17 #define PiB (INT64_C(1) << 50)
18 #define EiB (INT64_C(1) << 60)
20 #endif