Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sse2neon.h for supporting Linux ARM64 #8

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/basic/score_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ struct score_matrix

private:

static const double LN_2 = 0.69314718055994530941723212145818;
#if __GNUC__ > 5
static constexpr double LN_2 = 0.69314718055994530941723212145818;
#else
static const double LN_2 = 0.69314718055994530941723212145818;
#endif

template<typename _t>
struct Scores
Expand Down
16 changes: 11 additions & 5 deletions src/dp/score_vector2.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,18 @@ Author: Benjamin Buchfink
#ifndef SCORE_VECTOR2_H_
#define SCORE_VECTOR2_H_

#ifdef __SSSE3__
#include <tmmintrin.h>
#include <emmintrin.h>
#ifdef __x86_64__
#ifdef __SSSE3__
#include <tmmintrin.h>
#include <emmintrin.h>
#endif

#include <smmintrin.h>
#elif __aarch64__
#include "../sse2neon.h"
#endif

#include <smmintrin.h>
-#include <smmintrin.h>

#include "../basic/score_matrix.h"

Expand Down
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ Author: Benjamin Buchfink
#include "basic/setup.h"
#include "output/view.h"

#ifdef __aarch64__
#include "sse2neon.h"
#endif

#ifdef EXTRA
#include "../../extra/test_sw.h"
#include "../../extra/test_io.h"
Expand Down
Loading