]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
utils: Typedef int128_t and u_int128_t types if supported
authorMartin Willi <martin@revosec.ch>
Thu, 19 Mar 2015 14:59:31 +0000 (15:59 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 14 Apr 2015 10:03:46 +0000 (12:03 +0200)
src/libstrongswan/utils/utils.h

index 2675acae8d89213cc30c2eba061d73961153447a..bacea665d6228e48ce0273a041e426e264d9a568 100644 (file)
@@ -401,6 +401,17 @@ static inline void *memset_noop(void *s, int c, size_t n)
         typedef uint64_t        u_int64_t;
 #endif
 
+#ifdef HAVE_INT128
+/**
+ * 128 bit wide signed integer, if supported
+ */
+typedef __int128 int128_t;
+/**
+ * 128 bit wide unsigned integer, if supported
+ */
+typedef unsigned __int128 u_int128_t;
+#endif
+
 typedef enum status_t status_t;
 
 /**