-
-static inline token_t psi_calc_bool_not(token_t t1, impl_val *v1, token_t t2, impl_val *v2, impl_val *res)
-{
- (void) t2;
- (void) v2;
-
- switch (t1) {
- case PSI_T_INT8:
- res->u8 = !v1->i8;
- break;
- case PSI_T_UINT8:
- res->u8 = !v1->u8;
- break;
- case PSI_T_INT16:
- res->u8 = !v1->i16;
- break;
- case PSI_T_UINT16:
- res->u8 = !v1->u16;
- break;
- case PSI_T_INT32:
- res->u8 = !v1->i32;
- break;
- case PSI_T_UINT32:
- res->u8 = !v1->u32;
- break;
- case PSI_T_INT64:
- res->u8 = !v1->i64;
- break;
- case PSI_T_UINT64:
- res->u8 = !v1->u64;
- break;
- case PSI_T_FLOAT:
- res->u8 = !v1->fval;
- break;
- case PSI_T_DOUBLE:
- res->u8 = !v1->dval;
- break;
-#if HAVE_LONG_DOUBLE
- case PSI_T_LONG_DOUBLE:
- res->u8 = !v1->ldval;
- break;
-#endif
-
- default:
- assert(0);
- break;
- }
- return PSI_T_UINT8;
-}
-