mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-02-04 00:05:05 +01:00
M1 Support
We separate out 64-bit desktop support based on the Intel check. With the advent of the new Apple chip, ARM can also be a desktop processor. Detect it like we do the Intel 64-bit, and treat it similarly with respect to fast and normal math.
This commit is contained in:
@@ -72,7 +72,7 @@ extern "C" {
|
||||
|
||||
|
||||
/* detect 64-bit mode if possible */
|
||||
#if defined(__x86_64__) && !(defined (_MSC_VER) && defined(__clang__))
|
||||
#if (defined(__x86_64__) || defined(__aarch64__)) && !(defined (_MSC_VER) && defined(__clang__))
|
||||
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
|
||||
#define MP_64BIT
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user