[Libre-soc-dev] new svp64 page
Lauri Kasanen
cand at gmx.com
Fri Dec 11 07:25:02 GMT 2020
On Thu, 10 Dec 2020 18:07:23 +0000
Luke Kenneth Casson Leighton <lkcl at lkcl.net> wrote:
> does this look like a reasonable general-purpose algorithm, applicable
> to all operations, whether exts*, mr, or 2/3 arithmetic ops?
>
> * saturation is done on the result at the **source** elwidth
This would be a problem. For many cases, dst width != src width.
Say you have gathered stuff to u16 and then want to scale that into
u8, clamped. That's a u16 * u16 = u8 op - different src and dst
elwidths.
- Lauri
More information about the Libre-soc-dev
mailing list