[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] chicken.h: identify arm64 architectures
From: |
Evan Hanson |
Subject: |
Re: [Chicken-hackers] [PATCH] chicken.h: identify arm64 architectures |
Date: |
Thu, 5 Jul 2018 21:03:02 +1200 |
Hey Mario,
This seems fine to me in concept.
> -#elif defined(__arm__)
> +#elif defined(__arm__) && !defined(__arm64__) && !defined(__aarch64__)
> # define C_MACHINE_TYPE "arm"
> +#elif defined(__arm64__) || defined(__aarch64__)
> +# define C_MACHINE_TYPE "arm64"
Can we check for just defined(__arm64__) && defined(__aarch64__) first
and defined(__arm__) second?
If so that would be simpler to read, no need for the !defined(...) bits.
Evan
- Re: [Chicken-hackers] [PATCH] chicken.h: identify arm64 architectures,
Evan Hanson <=