units.h (476B)
1/* 2 * IEC binary prefixes definitions 3 * 4 * Copyright (C) 2015 Nikunj A Dadhania, IBM Corporation 5 * Copyright (C) 2018 Philippe Mathieu-Daudé <f4bug@amsat.org> 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