From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18727 invoked from network); 24 May 2023 13:48:12 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 13:48:12 -0000 Received: (qmail 17674 invoked by uid 550); 24 May 2023 13:44:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 17572 invoked from network); 24 May 2023 13:44:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=message-id:in-reply-to:references:from:date:to: resent-date:resent-from:subject:resent-message-id: resent-to; bh=7dohTBl50Dpo4aw06nQnMxoXHjZFdNvtSq0/oAz7yFY=; b=rB5YreVAV2sntl1DkpIolGxVncT/MWvwof4LeyOTwlKAFTC5aA8DF8J6 +Vlw2DwOTS9hcTWlaqxnOvFhaB6GFbenEqFcIXcMQKeyFXTYkgsaipCc4 pW5wME7zvzrxQjPowhkguQjJn1ImJb+nEX6Sv/SGqiMzPeHT2ZnnqAhHS o=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,189,1681164000"; d="scan'208";a="56881432" Message-Id: In-Reply-To: References: From: Jens Gustedt Date: Wed, 3 May 2023 13:40:00 +0200 To: musl@lists.openwall.com Resent-Date: Wed, 24 May 2023 15:44:35 +0200 Resent-From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt Resent-Message-ID: <20230524154435.37b60128@inria.fr> Resent-To: musl@lists.openwall.com Subject: [musl] [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