Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Fix error in Q-format rounding multiplication #424

Merged
merged 1 commit into from
Jan 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proposals/simd/SIMD.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ Lane-wise saturating rounding multiplication in Q15 format:
def S.q15mulr_sat_s(a, b):
def subq15mulr(x, y):
return S.SignedSaturate((x * y + 0x4000) >> 15)
return S.lanewise_binary(subsat, S.AsSigned(a), S.AsSigned(b))
return S.lanewise_binary(subq15mulr, S.AsSigned(a), S.AsSigned(b))
```

### Lane-wise integer minimum
Expand Down