diff options
Diffstat (limited to 'riscv/insns/pm2suba_h.h')
| -rw-r--r-- | riscv/insns/pm2suba_h.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/insns/pm2suba_h.h b/riscv/insns/pm2suba_h.h new file mode 100644 index 00000000..d8c923e2 --- /dev/null +++ b/riscv/insns/pm2suba_h.h @@ -0,0 +1,6 @@ +P_REDUCTION_LOOP(32, 16, true, false, { + if (j & 1) + p_res -= p_rs1 * p_rs2; + else + p_res += p_rs1 * p_rs2; +})
\ No newline at end of file |
