aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/kmmawt_u.h
blob: fe1dff06bd5af577033d542586afe0cdc97259a4 (plain)
1
2
3
4
5
6
7
P_LOOP(32, {
  int64_t mres = (int64_t)ps1 * P_SH(ps2, 1);
  int32_t round = (((mres >> 15) + 1) >> 1);
  bool sat = false;
  pd = (sat_add<int32_t, uint32_t>(pd, round, sat));
  P_SET_OV(sat);
})