mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ross Zwisler <ross.zwisler@linux.intel.com>
To: linux-kernel@vger.kernel.org
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Subject: [PATCH] sizes: Add 64 bit constants to sizes.h
Date: Thu, 11 Dec 2014 10:21:16 -0700	[thread overview]
Message-ID: <1418318476-11866-1-git-send-email-ross.zwisler@linux.intel.com> (raw)

This patch adds 64 bit ULL constants to include/linux/sizes.h.  These
sizes range from SZ_4G (4 gibibyte) through SZ_8E (8 exbibyte).

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
---
 include/linux/sizes.h | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index ce3e815..06ab35b 100644
--- a/include/linux/sizes.h
+++ b/include/linux/sizes.h
@@ -43,5 +43,40 @@
 
 #define SZ_1G				0x40000000
 #define SZ_2G				0x80000000
+#define SZ_4G				0x0000000100000000ULL
+#define SZ_8G				0x0000000200000000ULL
+#define SZ_16G				0x0000000400000000ULL
+#define SZ_32G				0x0000000800000000ULL
+#define SZ_64G				0x0000001000000000ULL
+#define SZ_128G				0x0000002000000000ULL
+#define SZ_256G				0x0000004000000000ULL
+#define SZ_512G				0x0000008000000000ULL
+
+#define SZ_1T				0x0000010000000000ULL
+#define SZ_2T				0x0000020000000000ULL
+#define SZ_4T				0x0000040000000000ULL
+#define SZ_8T				0x0000080000000000ULL
+#define SZ_16T				0x0000100000000000ULL
+#define SZ_32T				0x0000200000000000ULL
+#define SZ_64T				0x0000400000000000ULL
+#define SZ_128T				0x0000800000000000ULL
+#define SZ_256T				0x0001000000000000ULL
+#define SZ_512T				0x0002000000000000ULL
+
+#define SZ_1P				0x0004000000000000ULL
+#define SZ_2P				0x0008000000000000ULL
+#define SZ_4P				0x0010000000000000ULL
+#define SZ_8P				0x0020000000000000ULL
+#define SZ_16P				0x0040000000000000ULL
+#define SZ_32P				0x0080000000000000ULL
+#define SZ_64P				0x0100000000000000ULL
+#define SZ_128P				0x0200000000000000ULL
+#define SZ_256P				0x0400000000000000ULL
+#define SZ_512P				0x0800000000000000ULL
+
+#define SZ_1E				0x1000000000000000ULL
+#define SZ_2E				0x2000000000000000ULL
+#define SZ_4E				0x4000000000000000ULL
+#define SZ_8E				0x8000000000000000ULL
 
 #endif /* __LINUX_SIZES_H__ */
-- 
1.9.3


                 reply	other threads:[~2014-12-11 17:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418318476-11866-1-git-send-email-ross.zwisler@linux.intel.com \
    --to=ross.zwisler@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®