]> Git Repo - qemu.git/blob - include/qemu/units.h
qcow2.py: move qcow2 format classes to separate module
[qemu.git] / include / qemu / units.h
1 /*
2  * IEC binary prefixes definitions
3  *
4  * Copyright (C) 2015 Nikunj A Dadhania, IBM Corporation
5  * Copyright (C) 2018 Philippe Mathieu-Daudé <[email protected]>
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9
10 #ifndef QEMU_UNITS_H
11 #define QEMU_UNITS_H
12
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)
19
20 #endif
This page took 0.024274 seconds and 4 git commands to generate.