Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PyFastANI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Larralde
PyFastANI
Commits
fb18bcfe
Commit
fb18bcfe
authored
2 years ago
by
Martin Larralde
Browse files
Options
Downloads
Patches
Plain Diff
Fix include guards in `sequtils.cpp` to compile for Arm platforms
parent
62f72976
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfastani/_sequtils/sequtils.cpp
+8
-0
8 additions, 0 deletions
pyfastani/_sequtils/sequtils.cpp
with
8 additions
and
0 deletions
pyfastani/_sequtils/sequtils.cpp
+
8
−
0
View file @
fb18bcfe
...
...
@@ -41,19 +41,25 @@ extern "C" {
void
copy_upper
(
char
*
dst
,
const
char
*
src
,
size_t
len
)
{
#ifdef __arm__
#ifdef NEON_BUILD_SUPPORTED
if
(
features
.
neon
)
return
neon_copy_upper
(
dst
,
src
,
len
);
else
#endif
#endif
#ifdef __aarch64__
#ifdef NEON_BUILD_SUPPORTED
if
(
features
.
neon
)
return
neon_copy_upper
(
dst
,
src
,
len
);
else
#endif
#endif
#if defined(__x86__) || defined(__x86_64__)
#ifdef SSE2_BUILD_SUPPORTED
if
(
features
.
sse2
)
return
sse2_copy_upper
(
dst
,
src
,
len
);
// fast copying plus upper.
else
#endif
#endif
return
default_copy_upper
(
dst
,
src
,
len
);
}
...
...
@@ -76,9 +82,11 @@ extern "C" {
void
reverse_complement
(
char
*
dst
,
const
char
*
src
,
size_t
len
)
{
#if defined(__x86__) || defined(__x86_64__)
#ifdef SSSE3_BUILD_SUPPORTED
if
(
features
.
ssse3
)
return
ssse3_reverse_complement
(
dst
,
src
,
len
);
// fast reverse complement.
else
#endif
#endif
return
default_reverse_complement
(
dst
,
src
,
len
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment