mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-16 15:00:22 +00:00
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From 7d7a5939dcf5821d9f381d57bfa2012568ef6b82 Mon Sep 17 00:00:00 2001
|
|
From: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
|
|
Date: Thu, 10 Jan 2013 21:49:01 +0100
|
|
Subject: [PATCH] Added support for AArch64 architecture
|
|
|
|
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
|
|
|
|
Upstream-Status: backport
|
|
---
|
|
numpy/core/include/numpy/npy_cpu.h | 2 ++
|
|
numpy/core/include/numpy/npy_endian.h | 1 +
|
|
2 files changed, 3 insertions(+)
|
|
|
|
diff --git a/numpy/core/include/numpy/npy_cpu.h b/numpy/core/include/numpy/npy_cpu.h
|
|
index 8a29788..9707a7a 100644
|
|
--- a/numpy/core/include/numpy/npy_cpu.h
|
|
+++ b/numpy/core/include/numpy/npy_cpu.h
|
|
@@ -66,6 +66,8 @@
|
|
#define NPY_CPU_MIPSEL
|
|
#elif defined(__MIPSEB__)
|
|
#define NPY_CPU_MIPSEB
|
|
+#elif defined(__aarch64__)
|
|
+ #define NPY_CPU_AARCH64
|
|
#else
|
|
#error Unknown CPU, please report this to numpy maintainers with \
|
|
information about your platform (OS, CPU and compiler)
|
|
diff --git a/numpy/core/include/numpy/npy_endian.h b/numpy/core/include/numpy/npy_endian.h
|
|
index aa5ed8b..4e3349f 100644
|
|
--- a/numpy/core/include/numpy/npy_endian.h
|
|
+++ b/numpy/core/include/numpy/npy_endian.h
|
|
@@ -25,6 +25,7 @@
|
|
|| defined(NPY_CPU_IA64) \
|
|
|| defined(NPY_CPU_ALPHA) \
|
|
|| defined(NPY_CPU_ARMEL) \
|
|
+ || defined(NPY_CPU_AARCH64) \
|
|
|| defined(NPY_CPU_SH_LE) \
|
|
|| defined(NPY_CPU_MIPSEL)
|
|
#define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN
|
|
--
|
|
1.8.0
|
|
|