summaryrefslogtreecommitdiffstats
path: root/src/include/endian.h
diff options
context:
space:
mode:
authorCamVan Nguyen <ctnguyen@us.ibm.com>2011-12-06 17:24:57 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-12-07 09:51:25 -0600
commit4dcb3847ec0b7fd0c2c07a90090cd47167201534 (patch)
tree79600d7c1c41d36115a6b6cccd4c252e04b965a0 /src/include/endian.h
parent16bc626758b6dc65c1178e387501cb045e6dcd1d (diff)
downloadtalos-hostboot-4dcb3847ec0b7fd0c2c07a90090cd47167201534.tar.gz
talos-hostboot-4dcb3847ec0b7fd0c2c07a90090cd47167201534.zip
Optimize code to check for endianness at compile time.
Change-Id: I8df2d51b6ce3d79f67e67bdf7b3924b7af72c23d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/567 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/endian.h')
-rw-r--r--src/include/endian.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/endian.h b/src/include/endian.h
new file mode 100644
index 000000000..27248d892
--- /dev/null
+++ b/src/include/endian.h
@@ -0,0 +1,31 @@
+// IBM_PROLOG_BEGIN_TAG
+// This is an automatically generated prolog.
+//
+// $Source: src/include/endian.h $
+//
+// IBM CONFIDENTIAL
+//
+// COPYRIGHT International Business Machines Corp. 2010 - 2011
+//
+// p1
+//
+// Object Code Only (OCO) source materials
+// Licensed Internal Code Source Materials
+// IBM HostBoot Licensed Internal Code
+//
+// The source code for this program is not published or other-
+// wise divested of its trade secrets, irrespective of what has
+// been deposited with the U.S. Copyright Office.
+//
+// Origin: 30
+//
+// IBM_PROLOG_END
+#ifndef __ENDIAN_H
+#define __ENDIAN_H
+
+#define __LITTLE_ENDIAN (1234)
+#define __BIG_ENDIAN (4321)
+
+#define __BYTE_ORDER __BIG_ENDIAN
+
+#endif
OpenPOWER on IntegriCloud