X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcalc%2Fbool.h;h=7560021d1e364dd49e6d0ecacd5cf6623cd3082b;hp=5fe0ce7294451dc817298f0b904c0bdc41351ccf;hb=10e51aad0515e80adeb96a47776a2d80e62a98bc;hpb=c9384515a81cb64d345b299908b2852f51bb8e6e diff --git a/src/calc/bool.h b/src/calc/bool.h index 5fe0ce7..7560021 100644 --- a/src/calc/bool.h +++ b/src/calc/bool.h @@ -62,14 +62,20 @@ static inline token_t psi_calc_bool_or(token_t t1, impl_val *v1, token_t t2, imp if (v1->u64) goto return_true; break; +#if HAVE_INT128 case PSI_T_INT128: if (v1->i128) goto return_true; break; +#endif + +#if HAVE_UINT128 case PSI_T_UINT128: if (v1->u128) goto return_true; break; +#endif + case PSI_T_FLOAT: if (v1->fval) goto return_true; @@ -123,14 +129,20 @@ static inline token_t psi_calc_bool_or(token_t t1, impl_val *v1, token_t t2, imp if (v2->u64) goto return_true; break; +#if HAVE_INT128 case PSI_T_INT128: if (v2->i128) goto return_true; break; +#endif + +#if HAVE_UINT128 case PSI_T_UINT128: if (v2->u128) goto return_true; break; +#endif + case PSI_T_FLOAT: if (v2->fval) goto return_true; @@ -194,14 +206,20 @@ static inline token_t psi_calc_bool_and(token_t t1, impl_val *v1, token_t t2, im if (!v1->u64) goto return_false; break; +#if HAVE_INT128 case PSI_T_INT128: if (!v1->i128) goto return_false; break; +#endif + +#if HAVE_UINT128 case PSI_T_UINT128: if (!v1->u128) goto return_false; break; +#endif + case PSI_T_FLOAT: if (!v1->fval) goto return_false; @@ -255,14 +273,20 @@ static inline token_t psi_calc_bool_and(token_t t1, impl_val *v1, token_t t2, im if (!v2->u64) goto return_false; break; +#if HAVE_INT128 case PSI_T_INT128: if (!v2->i128) goto return_false; break; +#endif + +#if HAVE_UINT128 case PSI_T_UINT128: if (!v2->u128) goto return_false; break; +#endif + case PSI_T_FLOAT: if (!v2->fval) goto return_false;