shithub: opus-tools

Download patch

ref: 6b8af569b443ce3c4653aea62dd0339914b6088f
parent: 4e411db85d5d89030440a7faa3106486c6ca26ea
author: Mark Harris <mark.hsj@gmail.com>
date: Wed Sep 16 18:31:35 EDT 2020

Skip SSE check on non-x86

In paritcular, the cpuid check is not applcable to Elbrus (e2k).

Reported-by: Michael Shigorin <mike@altlinux.org>
Original-patch-by: "Konstantin A. Lepikhov" <lakostis@altlinux.ru>

--- a/src/cpusupport.h
+++ b/src/cpusupport.h
@@ -33,7 +33,7 @@
    on a host without those instructions. Therefore we disable
    the query both if the compiler isn't supporting SSE, and on
    targets which are guaranteed to have SSE. */
-# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__)
+# if !defined(__SSE__) || !(defined(_M_IX86) || defined(__i386__))
 #  define query_cpu_support() 0
 # else