Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce to a bigger type. #29

Open
michaelcadilhac opened this issue Apr 15, 2021 · 0 comments
Open

Reduce to a bigger type. #29

michaelcadilhac opened this issue Apr 15, 2021 · 0 comments

Comments

@michaelcadilhac
Copy link

When reducing a SIMD data type containing, say, chars using addition, the resulting type is char, likely leading to overflows. Traditional solutions would use the SAD instructions (Sum of Absolute Differences) to do a partial sum into bigger types, then use a reduce on the bigger types.

I don't see the SAD functions used in the codebase, nor a way to ask for a different return type using reduce. Am I missing something? Is the standard offering that functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant