Skip to content

Commit

Permalink
use the simde header library for greater compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Jun 20, 2020
1 parent 20f24e3 commit 65c699a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "simde"]
path = simde
url = https://github.com/nemequ/simde-no-tests
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ifneq (,$(findstring Darwin,$(shell uname)))
MACOS = 1
endif

EXTRA_FLAGS += -DPOPCNT_CAPABILITY -std=c++11
EXTRA_FLAGS += -std=c++11
INC += -I. -I third_party

MM_DEF =
Expand Down
3 changes: 2 additions & 1 deletion aligner_sw.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@

#define INLINE_CUPS

#define SIMDE_ENABLE_NATIVE_ALIASES
#include <simde/x86/sse2.h>
#include <stdint.h>
#include <iostream>
#include <limits>
#include "threading.h"
#include <emmintrin.h>
#include "aligner_sw_common.h"
#include "aligner_sw_nuc.h"
#include "ds.h"
Expand Down
5 changes: 2 additions & 3 deletions processor_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#if defined(__INTEL_COMPILER)
# define USING_INTEL_COMPILER
#elif defined(__GNUC__)
#elif defined(__GNUC__) && defined(__x86_64__) || defined(__i386__)
# define USING_GCC_COMPILER
# include <cpuid.h>
#elif defined(_MSC_VER)
Expand Down Expand Up @@ -52,8 +52,7 @@ class ProcessorSupport {
#elif defined(USING_GCC_COMPILER)
__get_cpuid(0x1, &regs.EAX, &regs.EBX, &regs.ECX, &regs.EDX);
#else
std::cerr << "ERROR: please define __cpuid() for this build.\n";
assert(0);
return false;
#endif
if( !( (regs.ECX & BIT(20)) && (regs.ECX & BIT(23)) ) ) return false;
}
Expand Down
1 change: 1 addition & 0 deletions simde
Submodule simde added at 54c104
4 changes: 3 additions & 1 deletion sse_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
#ifndef SSE_UTIL_H_
#define SSE_UTIL_H_

#define SIMDE_ENABLE_NATIVE_ALIASES
#include <simde/x86/sse2.h>

#include "assert_helpers.h"
#include "ds.h"
#include "limit.h"
#include <iostream>
#include <emmintrin.h>

class EList_m128i {
public:
Expand Down

0 comments on commit 65c699a

Please sign in to comment.