Skip to content

Commit

Permalink
Merge pull request #32 from hanseuljun/arm64-support
Browse files Browse the repository at this point in the history
Avoid including immintrin.h when GF256_TARGET_MOBILE is set.
  • Loading branch information
catid authored Feb 12, 2021
2 parents 9e8923a + ce3c605 commit e42951f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gf256.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#define GF256_TARGET_MOBILE
#endif // ANDROID

#if defined(__AVX2__) || (defined (_MSC_VER) && _MSC_VER >= 1900)
#if defined(__AVX2__) || (defined (_MSC_VER) && _MSC_VER >= 1900) && !defined(GF256_TARGET_MOBILE)
#define GF256_TRY_AVX2 /* 256-bit */
#include <immintrin.h>
#define GF256_ALIGN_BYTES 32
Expand Down

0 comments on commit e42951f

Please sign in to comment.