Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <9ed459afff56aca8d52a6e285360b9ca61e9abfb.1685521571.git.Jens.Gustedt@inria.fr>
Date: Wed, 31 May 2023 10:45:49 +0200
From: Jens Gustedt <Jens.Gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: [C23 feature tests 2/4] 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 8e1d84e3..9d0d3724 100644
--- a/include/features.h
+++ b/include/features.h
@@ -57,4 +57,11 @@
 
 #define __REDIR(x,y) __typeof__(x) x __asm__(#y)
 
+// 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.