new file mode 100644
@@ -0,0 +1,61 @@
+/*
+ * Handy size definitions
+ *
+ * Copyright (C) 2013 Antony Pavlov <antonynpavlov@gmail.com>
+ *
+ * Inspired by linux/sizes.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef QEMU_SIZES_H
+#define QEMU_SIZES_H
+
+#include <qemu/bitops.h>
+
+#define SZ_1 BIT(0)
+#define SZ_2 BIT(1)
+#define SZ_4 BIT(2)
+#define SZ_8 BIT(3)
+#define SZ_16 BIT(4)
+#define SZ_32 BIT(5)
+#define SZ_64 BIT(6)
+#define SZ_128 BIT(7)
+#define SZ_256 BIT(8)
+#define SZ_512 BIT(9)
+
+#define SZ_1K BIT(10)
+#define SZ_2K BIT(11)
+#define SZ_4K BIT(12)
+#define SZ_8K BIT(13)
+#define SZ_16K BIT(14)
+#define SZ_32K BIT(15)
+#define SZ_64K BIT(16)
+#define SZ_128K BIT(17)
+#define SZ_256K BIT(18)
+#define SZ_512K BIT(19)
+
+#define SZ_1M BIT(20)
+#define SZ_2M BIT(21)
+#define SZ_4M BIT(22)
+#define SZ_8M BIT(23)
+#define SZ_16M BIT(24)
+#define SZ_32M BIT(25)
+#define SZ_64M BIT(26)
+#define SZ_128M BIT(27)
+#define SZ_256M BIT(28)
+#define SZ_512M BIT(29)
+
+#define SZ_1G BIT(30)
+#define SZ_2G BIT(31)
+
+#endif /* QEMU_SIZES_H */