On 2/24/22 08:36, marcandre.lur...@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.hender...@linaro.org>


r~


[1] https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-947.pdf



Reply via email to