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

optimize avx #1666

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

optimize avx #1666

wants to merge 19 commits into from

Conversation

salt431
Copy link
Contributor

@salt431 salt431 commented Jul 9, 2024

consolidate the conditionals in /src/emu/x64runavxf20f38.c along with a slight refactor. should boost performance a little bit, builds passing.

salt431 added 19 commits June 19, 2024 00:23
combine if (!bitmask || !~bitmask) to (bitmask == 0 || bitmask == ~0ULL) to reduce overhead.

use bitwise operators instead of + operators.
Flag-setting operations are optimized to minimize redundant flag checks and manipulations.
Conditional operations are simplified to improve readability and potentially reduce CPU overhead.
Flag-setting operations are optimized to minimize redundant flag checks and manipulations.
Conditional operations are simplified to improve readability and potentially reduce CPU overhead.
Flag-setting operations are optimized to minimize redundant flag checks and manipulations.
Conditional operations are simplified to improve readability and potentially reduce CPU overhead.
@ptitSeb
Copy link
Owner

ptitSeb commented Jul 10, 2024

I'm sorry, but this is is literaly the exact same code with sligt style variation. There iis no optimisation there at all.

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