flush
[m6w6/ext-psi] / src / calc / bool.h
index 5fe0ce7294451dc817298f0b904c0bdc41351ccf..13a61545002f2e683149cbb3d84c34ef269818a0 100644 (file)
@@ -23,7 +23,6 @@
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *******************************************************************************/
 
-#include "php_psi_stdinc.h"
 #include <assert.h>
 
 #include "token.h"
@@ -62,14 +61,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 +128,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 +205,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 +272,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;