Skip to content

avx2: use vpabsd - #1586

Open
anematode wants to merge 1 commit into
Netflix:masterfrom
anematode:opt-7
Open

avx2: use vpabsd#1586
anematode wants to merge 1 commit into
Netflix:masterfrom
anematode:opt-7

Conversation

@anematode

Copy link
Copy Markdown

Instead of sign-extending to 64-bit and then taking the absolute value, we can zero extend first and take 32-bit absolute values (or the other way around, doesn't matter)

@kylophone

Copy link
Copy Markdown
Collaborator

Do you have benchmarks?

@anematode

Copy link
Copy Markdown
Author

Not immediately, but seems like a pretty straightforward improvement to me?

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

Successfully merging this pull request may close these issues.

2 participants