mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
configure.ac: Add __int128 support.
This commit is contained in:
parent
a023048419
commit
5b607b5b1f
2 changed files with 13 additions and 3 deletions
|
@ -367,14 +367,16 @@ AC_TYPE_SSIZE_T
|
||||||
AC_TYPE_UID_T
|
AC_TYPE_UID_T
|
||||||
AC_TYPE_PID_T
|
AC_TYPE_PID_T
|
||||||
|
|
||||||
|
AC_CHECK_TYPES([intptr_t])
|
||||||
|
AC_CHECK_TYPES([uintptr_t])
|
||||||
|
AC_CHECK_TYPES([__int128])
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(char)
|
AC_CHECK_SIZEOF(char)
|
||||||
AC_CHECK_SIZEOF(short)
|
AC_CHECK_SIZEOF(short)
|
||||||
AC_CHECK_SIZEOF(int)
|
AC_CHECK_SIZEOF(int)
|
||||||
AC_CHECK_SIZEOF(long)
|
AC_CHECK_SIZEOF(long)
|
||||||
AC_CHECK_SIZEOF(long long)
|
AC_CHECK_SIZEOF(long long)
|
||||||
|
AC_CHECK_SIZEOF(__int128)
|
||||||
AC_CHECK_TYPES([intptr_t])
|
|
||||||
AC_CHECK_TYPES([uintptr_t])
|
|
||||||
|
|
||||||
AC_FUNC_MMAP
|
AC_FUNC_MMAP
|
||||||
AC_FUNC_VFORK
|
AC_FUNC_VFORK
|
||||||
|
|
|
@ -30,6 +30,14 @@ extern "C" {
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef int128_t
|
||||||
|
typedef __int128 int128_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef uint128_t
|
||||||
|
typedef unsigned __int128 uint128_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#undef alloca
|
#undef alloca
|
||||||
#define alloca __builtin_alloca
|
#define alloca __builtin_alloca
|
||||||
|
|
Loading…
Reference in a new issue