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