Skip to content
Snippets Groups Projects
Commit 918c7801 authored by Martin Larralde's avatar Martin Larralde
Browse files

Fix invalid detection of x86_64 platform in `sequtils.c`

parent 5beb83f6
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "sequtils.h" #include "sequtils.h"
#include "complement.h" #include "complement.h"
#ifdef __X86__ || __X86_64__ #if defined(__X86__) || defined(__X86_64__)
#include "cpu_features_x86.h" #include "cpu_features_x86.h"
static const X86Features features = GetX86Info().features; static const X86Features features = GetX86Info().features;
#endif #endif
...@@ -41,6 +41,11 @@ void copy_upper(char* dst, const char* src, size_t len) { ...@@ -41,6 +41,11 @@ void copy_upper(char* dst, const char* src, size_t len) {
return neon_copy_upper(dst, src, len); return neon_copy_upper(dst, src, len);
else else
#endif #endif
#ifdef __aarch64__
if (features.neon)
return neon_copy_upper(dst, src, len);
else
#endif
#if defined(__X86__) || defined(__X86_64__) #if defined(__X86__) || defined(__X86_64__)
if (features.sse2) if (features.sse2)
return sse2_copy_upper(dst, src, len); // fast copying plus upper. return sse2_copy_upper(dst, src, len); // fast copying plus upper.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment