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