On 6/7/21 9:57 AM, Peter Maydell wrote:
+#define DO_NEG(N) (-(N)) +#define DO_FNEG(N) ((N) ^ ~((__typeof(N))-1 >> 1)) + +DO_1OP(vnegb, 1, int8_t, H1, DO_NEG) +DO_1OP(vnegh, 2, int16_t, H2, DO_NEG) +DO_1OP(vnegw, 4, int32_t, H4, DO_NEG) + +DO_1OP(vfnegh, 2, uint16_t, H2, DO_FNEG) +DO_1OP(vfnegs, 4, uint32_t, H4, DO_FNEG)
Similar comments to abs. Otherwise, Reviewed-by: Richard Henderson <[email protected]> r~
