summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2012-12-21 13:29:37 (GMT)
committerBrad King <brad.king@kitware.com>2012-12-22 14:52:01 (GMT)
commit567e7d946788e46f9709fe08985520b55e98293b (patch)
treea8ea20d09e44069219d65fe4297e620109a6aec9
parenta0f91f1daa7765066a784e4479da7e231374a065 (diff)
downloadCMake-567e7d946788e46f9709fe08985520b55e98293b.zip
CMake-567e7d946788e46f9709fe08985520b55e98293b.tar.gz
CMake-567e7d946788e46f9709fe08985520b55e98293b.tar.bz2
KWSys 2012-12-21 (8ce09af5)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 8ce09af5 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 933eb822..8ce09af5 Riku Voipio (1): 8ce09af5 CPU: Add Aarch64 support Change-Id: I4bd0a97abaa0f958e2679afe2d4ad4bcc37434a0
-rw-r--r--CPU.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/CPU.h.in b/CPU.h.in
index ecd29d1..2e1a584 100644
--- a/CPU.h.in
+++ b/CPU.h.in
@@ -98,6 +98,14 @@
#elif defined(__SYSC_ZARCH__)
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
+/* Aarch64 */
+#elif defined(__aarch64__)
+# if !defined(__AARCH64EB__)
+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE
+# else
+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
+# endif
+
/* Unknown CPU */
#else
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID 0