__int128 support
[m6w6/ext-psi] / src / types / impl_val.h
index 18663203b04a51cdefd36263cf61f8ef8ced9d47..69c31b65fcf54bd18635bb0933b88d52b98bc99a 100644 (file)
@@ -35,18 +35,18 @@ typedef struct zend_fcall {
 } zend_fcall;
 
 typedef union impl_val {
-       char cval;
        int8_t i8;
        uint8_t u8;
-       short sval;
        int16_t i16;
        uint16_t u16;
-       int ival;
        int32_t i32;
        uint32_t u32;
-       long lval;
        int64_t i64;
        uint64_t u64;
+#if HAVE_INT128
+       int128_t i128;
+       uint128_t u128;
+#endif
        float fval;
        double dval;
 #ifdef HAVE_LONG_DOUBLE
@@ -59,6 +59,9 @@ typedef union impl_val {
                zend_fcall *cb;
        } zend;
        void *ptr;
+#ifdef PHP_DEBUG
+       char _dbg[sizeof(void *)];
+#endif
 } impl_val;
 
 #endif