- default:
- assert(0);
- break;
- }
-
- res->u64 = i1.u64 | i2.u64;
- return PSI_T_UINT64;
-}
-
-static inline token_t psi_calc_bin_not(token_t t1, impl_val *v1, token_t t2, impl_val *v2, impl_val *res)
-{
- impl_val i1;
-
- (void) t2;
- (void) v2;
-
- switch (t1) {
- case PSI_T_INT8:
- i1.u64 = v1->i8;
- break;
-
- case PSI_T_UINT8:
- i1.u64 = v1->u8;
- break;
-
- case PSI_T_INT16:
- i1.u64 = v1->i16;
- break;
-
- case PSI_T_UINT16:
- i1.u64 = v1->u16;
- break;
-
- case PSI_T_INT32:
- i1.u64 = v1->i32;
- break;
-
- case PSI_T_UINT32:
- i1.u64 = v1->u32;
- break;
-
- case PSI_T_INT64:
- i1.u64 = v1->i64;
- break;
-
- case PSI_T_UINT64:
- i1.u64 = v1->u64;