[Libre-soc-dev] clamping/saturation semantics

Jacob Lifshay programmerjake at gmail.com
Sun Dec 13 03:48:14 GMT 2020


On Sat, Dec 12, 2020, 19:37 Luke Kenneth Casson Leighton <lkcl at lkcl.net>
wrote:

> On 12/13/20, Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> the one that is particularly odd is avg.  that one: how the heck do we
> SIMD-i-fy and saturate that one??
>

Well, assuming the input and output types are the same, it never overflows,
so saturation is a no-op.

All of the above (and me previous email in this thread) is assuming
signed/unsigned integers, FP may behave differently.

Jacob


More information about the Libre-soc-dev mailing list