|
Message-Id: <c888814b01965f6885b03819c0cb9be00d4f5800.1684922674.git.Jens.Gustedt@inria.fr> Date: Wed, 3 May 2023 13:40:00 +0200 From: Jens Gustedt <Jens.Gustedt@...ia.fr> To: musl@...ts.openwall.com Subject: [C23 feature tests 3/6] C23: add a feature test for the [u]int128_t --- include/features.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/features.h b/include/features.h index 05abcadc..4083436d 100644 --- a/include/features.h +++ b/include/features.h @@ -61,4 +61,11 @@ #define __has_VA_OPT1(...) __has_VA_OPT2(__VA_OPT__(,) 1, 0,) #define __has_VA_OPT __has_VA_OPT1(C23) +// If the platform supports the 128 integer type and has _BitInt(N) +// support where N large enough (all C23 compiler should have the +// latter) +#if __SIZEOF_INT128__ && (__BITINT_MAXWIDTH__ >= 128) +#define __has_int128_t 1 +#endif + #endif -- 2.34.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.