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

Nonoptimal CmpLt #156

Open
Melirius opened this issue May 29, 2024 · 1 comment
Open

Nonoptimal CmpLt #156

Melirius opened this issue May 29, 2024 · 1 comment

Comments

@Melirius
Copy link

Melirius commented May 29, 2024

Self { avx2: !cmp_gt_mask_i32_m256i(self.avx2, rhs.avx2) ^ cmp_eq_mask_i32_m256i(self.avx2,rhs.avx2) }

Much faster will be just reverse CmpGt

        Self { avx2: cmp_gt_mask_i32_m256i(rhs.avx2, self.avx2) }
@Melirius Melirius changed the title Nonoptimal CmpLt Nonoptimal CmpLt May 29, 2024
@Lokathor
Copy link
Owner

That does look better.

Well do the PR and I can probably get it published pretty quick.

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

2 participants