X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi%2Fpsi_type.m4;h=8f2956f96bb7dc692027d0144f5dcebaefb0fdf7;hp=8dad63369bdeab31b84bb97c55e10672aec75700;hb=6ec1a060415f860bc3eb4c74fbce1c43f5aa7e55;hpb=de9b3ba972626195328a82bb108cac86312bd288 diff --git a/m4/psi/psi_type.m4 b/m4/psi/psi_type.m4 index 8dad633..8f2956f 100644 --- a/m4/psi/psi_type.m4 +++ b/m4/psi/psi_type.m4 @@ -68,7 +68,7 @@ AC_DEFUN(PSI_STDTYPE, [ ifdef(AS_TR_CPP(AC_TYPE_$1), AS_TR_CPP(AC_TYPE_$1)) PSI_CHECK_SIZEOF($1) if PSI_SH_TEST_SIZEOF($1); then - m4_case([$1], + m4_case(ifelse(,[$2],[$1],[$2]), [bool],[psi_add_stdtype "{PSI_T_BOOL, \"bool\", NULL}"], [float],[psi_add_stdtype "{PSI_T_FLOAT, \"float\", NULL}"], [double],[psi_add_stdtype "{PSI_T_DOUBLE, \"double\", NULL}"], @@ -255,4 +255,14 @@ AC_DEFUN(PSI_CHECK_STD_TYPES, [ PSI_STDTYPE(long long unsigned int, uint) dnl this must come after the check for "unsigned long long int"; autoconf, wth? PSI_STDTYPE(long long int, int) + + AC_CHECK_TYPE(__int128, [ + AC_DEFINE([HAVE_INT128], [1], [ ]) + AC_CHECK_ALIGNOF(__int128) + PSI_STDTYPE(__int128, int) + PSI_STDTYPE(signed __int128, int) + PSI_STDTYPE(unsigned __int128, uint) + ]) + + PSI_STDTYPE(_Float128) ])