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:
John Safranek
2021-01-06 09:18:57 -08:00
parent 54f072fd8d
commit d4e13796c2
5 changed files with 11 additions and 4 deletions

View File

@@ -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