added check for __uint128_t into configure.ac

This commit is contained in:
hyunghwan.chung
2016-10-06 18:31:29 +00:00
parent 711663255b
commit 835919c4fe
4 changed files with 53 additions and 1 deletions

View File

@ -414,6 +414,9 @@
/* The size of `__int8_t', as computed by sizeof. */
#undef SIZEOF___INT8_T
/* The size of `__uint128_t', as computed by sizeof. */
#undef SIZEOF___UINT128_T
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
@ -513,6 +516,9 @@
/* sizeof(__int8) */
#undef STIX_SIZEOF___INT8
/* sizeof(__uint128_t) */
#undef STIX_SIZEOF___UINT128_T
/* Version number of package */
#undef VERSION

View File

@ -197,7 +197,10 @@
#elif defined(STIX_SIZEOF___INT128_T) && (STIX_SIZEOF___INT128_T == 16)
# define STIX_HAVE_UINT128_T
# define STIX_HAVE_INT128_T
#if defined(__clang__)
#if defined(STIX_SIZEOF___UINT128_T) && (STIX_SIZEOF___UINT128_T == STIX_SIZEOF___INT128_T)
typedef __uint128_t stix_uint128_t;
typedef __int128_t stix_int128_t;
#elif defined(__clang__)
typedef __uint128_t stix_uint128_t;
typedef __int128_t stix_int128_t;
#else