added __int128_t and __uint128_t into configure.ac

This commit is contained in:
hyung-hwan 2011-02-05 09:39:15 +00:00
parent db7d928a68
commit 7d5523360e
4 changed files with 2060 additions and 1 deletions

2030
qse/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -126,6 +126,11 @@ AC_CHECK_SIZEOF(__int16)
AC_CHECK_SIZEOF(__int32)
AC_CHECK_SIZEOF(__int64)
AC_CHECK_SIZEOF(__int128)
AC_CHECK_SIZEOF(__int8_t)
AC_CHECK_SIZEOF(__int16_t)
AC_CHECK_SIZEOF(__int32_t)
AC_CHECK_SIZEOF(__int64_t)
AC_CHECK_SIZEOF(__int128_t)
dnl AC_CHECK_SIZEOF doesn't work without white-space between void and *
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(float)
@ -145,6 +150,7 @@ AC_DEFINE_UNQUOTED(QSE_SIZEOF___INT16, ${ac_cv_sizeof___int16}, [sizeof(__int16)
AC_DEFINE_UNQUOTED(QSE_SIZEOF___INT32, ${ac_cv_sizeof___int32}, [sizeof(__int32)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF___INT64, ${ac_cv_sizeof___int64}, [sizeof(__int64)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF___INT128, ${ac_cv_sizeof___int128}, [sizeof(__int128)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF___INT128_T, ${ac_cv_sizeof___int128_t}, [sizeof(__int128_t)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF_VOID_P, ${ac_cv_sizeof_void_p}, [sizeof(void*)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF_FLOAT, ${ac_cv_sizeof_float}, [sizeof(float)])
AC_DEFINE_UNQUOTED(QSE_SIZEOF_DOUBLE, ${ac_cv_sizeof_double}, [sizeof(double)])

View File

@ -303,6 +303,9 @@
/* sizeof(__int128) */
#undef QSE_SIZEOF___INT128
/* sizeof(__int128_t) */
#undef QSE_SIZEOF___INT128_T
/* sizeof(__int16) */
#undef QSE_SIZEOF___INT16
@ -357,18 +360,33 @@
/* The size of `__int128', as computed by sizeof. */
#undef SIZEOF___INT128
/* The size of `__int128_t', as computed by sizeof. */
#undef SIZEOF___INT128_T
/* The size of `__int16', as computed by sizeof. */
#undef SIZEOF___INT16
/* The size of `__int16_t', as computed by sizeof. */
#undef SIZEOF___INT16_T
/* The size of `__int32', as computed by sizeof. */
#undef SIZEOF___INT32
/* The size of `__int32_t', as computed by sizeof. */
#undef SIZEOF___INT32_T
/* The size of `__int64', as computed by sizeof. */
#undef SIZEOF___INT64
/* The size of `__int64_t', as computed by sizeof. */
#undef SIZEOF___INT64_T
/* The size of `__int8', as computed by sizeof. */
#undef SIZEOF___INT8
/* The size of `__int8_t', as computed by sizeof. */
#undef SIZEOF___INT8_T
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

View File

@ -1,5 +1,5 @@
/*
* $Id: types.h 360 2010-10-21 13:29:12Z hyunghwan.chung $
* $Id: types.h 383 2011-02-04 15:39:15Z hyunghwan.chung $
*
Copyright 2006-2009 Chung, Hyung-Hwan.
This file is part of QSE.
@ -233,6 +233,11 @@ typedef enum qse_tri_t qse_tri_t;
# define QSE_HAVE_UINT128_T
typedef __int128 qse_int128_t;
typedef unsigned __int128 qse_uint128_t;
#elif QSE_SIZEOF___INT128_T == 16
# define QSE_HAVE_INT128_T
# define QSE_HAVE_UINT128_T
typedef __int128_t qse_int128_t;
typedef __uint128_t qse_uint128_t;
#endif
/**