|
From: | Richard Henderson |
Subject: | Re: [PATCH 07/12] Simplify HOST_LONG_BITS |
Date: | Thu, 24 Feb 2022 09:58:31 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 2/24/22 08:36, marcandre.lureau@redhat.com wrote:
-#if UINTPTR_MAX == UINT32_MAX -# define HOST_LONG_BITS 32 -#elif UINTPTR_MAX == UINT64_MAX -# define HOST_LONG_BITS 64 -#else -# error Unknown pointer size -#endif +#define HOST_LONG_BITS (__SIZEOF_POINTER__ * 8)
I guess. I'll note that there are 128-bit pointers on the horizon, but that UINTPTR_MAX would not necessarily change to match __SIZEOF_POINTER__ [1].
Acked-by: Richard Henderson <richard.henderson@linaro.org> r~ [1] https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-947.pdf
[Prev in Thread] | Current Thread | [Next in Thread] |