Skip to content

Commit

Permalink
Automatically enable hardware support on __ALTIVEC__ + __CRYPTO__
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Oct 30, 2024
1 parent de4f9f3 commit 42e4cc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# define HAS_HW_AES
#elif defined(__AES__) && defined(__AVX__)
# define HAS_HW_AES
#elif defined(__ALTIVEC__) && defined(__CRYPTO__)
# define HAS_HW_AES
#endif

int aegis_runtime_get_cpu_features(void);
Expand Down

0 comments on commit 42e4cc5

Please sign in to comment.