Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-09-22 10:37:46 +0300
committerTim-Philipp Müller <tim@centricular.com>2022-10-31 13:47:33 +0300
commitd89d0f7f26c1a39c5067e7ee9f46b72e51aec1d5 (patch)
tree6293771779c297d8d02cb9b65d256f22fc2948f0
parent1ca0d41cb38204864c9d507ccd810ed6338078bc (diff)
orccpu-arm.c: Assume ARMv8 on Windows ARM64
ARM64 Windows are supported on ARMv8 CPUs only, so just assume that we have the NEON and EDSP ARM instructions.
-rw-r--r--orc/orccpu-arm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/orc/orccpu-arm.c b/orc/orccpu-arm.c
index 6bb219e..a372127 100644
--- a/orc/orccpu-arm.c
+++ b/orc/orccpu-arm.c
@@ -49,7 +49,7 @@
/***** arm *****/
-#if defined (__arm__) || defined (__aarch64__)
+#if defined (__arm__) || defined (__aarch64__) || defined (_M_ARM64)
#if 0
static unsigned long
orc_profile_stamp_xscale(void)
@@ -120,6 +120,10 @@ orc_cpu_arm_getflags_cpuinfo ()
char **flags;
char **f;
+#if defined (_WIN32) && defined (_M_ARM64)
+ /* On Windows, for desktop applications, we are on always on ARMv8 (aarch64)*/
+ ret = ORC_TARGET_ARM_EDSP | ORC_TARGET_NEON_NEON;
+#else
cpuinfo = get_proc_cpuinfo();
if (cpuinfo == NULL) {
ORC_DEBUG ("Failed to read /proc/cpuinfo");
@@ -159,6 +163,7 @@ orc_cpu_arm_getflags_cpuinfo ()
out:
free (cpuinfo_line);
free (cpuinfo);
+#endif
return ret;
}