])
dnl
-dnl Check for GNU 128-bit integer and floating point types.
+dnl Check for GNU 128-bit floating point type.
dnl
-dnl Note: also checks that the types aren't standard types.
+dnl Note: also checks that the type isn't a standard types.
dnl
dnl Defines:
-dnl _GLIBCXX_USE_INT128
dnl ENABLE_FLOAT128
dnl
-AC_DEFUN([GLIBCXX_ENABLE_INT128_FLOAT128], [
+AC_DEFUN([GLIBCXX_ENABLE_FLOAT128], [
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
# Fake what AC_TRY_COMPILE does, without linking as this is
# unnecessary for this test.
- cat > conftest.$ac_ext << EOF
-[#]line __oline__ "configure"
-template<typename T1, typename T2>
- struct same
- { typedef T2 type; };
-
-template<typename T>
- struct same<T, T>;
-
-int main()
-{
- typename same<long, __int128>::type i1;
- typename same<long long, __int128>::type i2;
-}
-EOF
-
- AC_MSG_CHECKING([for __int128])
- if AC_TRY_EVAL(ac_compile); then
- AC_DEFINE(_GLIBCXX_USE_INT128, 1,
- [Define if __int128 is supported on this host.])
- enable_int128=yes
- else
- enable_int128=no
- fi
- AC_MSG_RESULT($enable_int128)
- rm -f conftest*
-
- cat > conftest.$ac_ext << EOF
+ cat > conftest.$ac_ext << EOF
[#]line __oline__ "configure"
template<typename T1, typename T2>
struct same
/* Define if get_nprocs is available in <sys/sysinfo.h>. */
#undef _GLIBCXX_USE_GET_NPROCS
-/* Define if __int128 is supported on this host. */
-#undef _GLIBCXX_USE_INT128
-
/* Define if LFS support is available. */
#undef _GLIBCXX_USE_LFS
# Fake what AC_TRY_COMPILE does, without linking as this is
# unnecessary for this test.
- cat > conftest.$ac_ext << EOF
+ cat > conftest.$ac_ext << EOF
#line 16222 "configure"
template<typename T1, typename T2>
struct same
int main()
{
- typename same<long, __int128>::type i1;
- typename same<long long, __int128>::type i2;
-}
-EOF
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
-$as_echo_n "checking for __int128... " >&6; }
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
-
-$as_echo "#define _GLIBCXX_USE_INT128 1" >>confdefs.h
-
- enable_int128=yes
- else
- enable_int128=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_int128" >&5
-$as_echo "$enable_int128" >&6; }
- rm -f conftest*
-
- cat > conftest.$ac_ext << EOF
-#line 16256 "configure"
-template<typename T1, typename T2>
- struct same
- { typedef T2 type; };
-
-template<typename T>
- struct same<T, T>;
-
-int main()
-{
typename same<double, __float128>::type f1;
typename same<long double, __float128>::type f2;
}
GLIBCXX_ENABLE_ATOMIC_BUILTINS
GLIBCXX_ENABLE_LOCK_POLICY
GLIBCXX_ENABLE_DECIMAL_FLOAT
-GLIBCXX_ENABLE_INT128_FLOAT128
+GLIBCXX_ENABLE_FLOAT128
if test "$enable_float128" = yes; then
port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/abi/pre/float128.ver"
fi
struct _Select_uint_least_t<__s, 2>
{ typedef unsigned long long type; };
-#ifdef _GLIBCXX_USE_INT128
+#if __SIZEOF_INT128__ > __SIZEOF_LONG_LONG__
template<int __s>
struct _Select_uint_least_t<__s, 1>
{ typedef unsigned __int128 type; };
struct __to_chars_unsigned_type : __make_unsigned_selector_base
{
using _UInts = _List<unsigned int, unsigned long, unsigned long long
-#if _GLIBCXX_USE_INT128
+#if __SIZEOF_INT128__ > __SIZEOF_LONG_LONG__
, unsigned __int128
#endif
>;