aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/srl16_u.h
blob: f7b0571d1f983664ec2f6211be870fda20a497a0 (plain)
1
2
3
4
5
6
7
P_X_ULOOP(16, 4, {
  if (sa > 0) {
    pd = ((ps1 >> (sa - 1)) + 1) >> 1;
  } else {
    pd = ps1;
  }
})