Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #17 from grendello/fix-android-ndk18
Browse files Browse the repository at this point in the history
[Android] Fixing the previous clang fix
  • Loading branch information
grendello committed Jan 4, 2019
2 parents d637462 + 6ca625c commit 3d87996
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions crypto/aes/asm/aesv8-armx.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@
.text
___
$code.=<<___ if ($flavour =~ /64/);
#if defined(ANDROID) || !defined(__clang__)
.arch armv8-a+crypto,+neon
#if !defined(__clang__)
.arch armv8-a+crypto
#elif defined(ANDROID) && defined(__clang__)
#if __clang_major__ > 3
.arch armv8-a+crypto
#else
.arch armv8-a+crypto,+neon
#endif
#endif
___
$code.=".arch armv7-a\n.fpu neon\n.code 32\n" if ($flavour !~ /64/);
Expand Down
10 changes: 8 additions & 2 deletions crypto/modes/asm/ghashv8-armx.pl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@
.text
___
$code.=<<___ if ($flavour =~ /64/);
#if defined(ANDROID) || !defined(__clang__)
.arch armv8-a+crypto,+neon
#if !defined(__clang__)
.arch armv8-a+crypto
#elif defined(ANDROID) && defined(__clang__)
#if __clang_major__ > 3
.arch armv8-a+crypto
#else
.arch armv8-a+crypto,+neon
#endif
#endif
___
$code.=".fpu neon\n.code 32\n" if ($flavour !~ /64/);
Expand Down

0 comments on commit 3d87996

Please sign in to comment.