Skip to content
Commit 6c69c98d authored by Tamas Petz's avatar Tamas Petz
Browse files

[NEON] Fix scalar path of saturating_absdiff()



In the previous version 'decltype(src_a - src_b)'
was still signed, therefore it chose the first
argument even when max() should have been chosen.

The new variant calculates unsigned difference and
then applies saturating cast to limit the domain.

Co-authored-by: Denes Tarjan's avatarDenes Tarjan <denes.tarjan@arm.com>
parent f04148f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment