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 is_ltz for g++ x86 #1302

Merged
merged 3 commits into from
Jun 1, 2022
Merged

Optimize is_ltz for g++ x86 #1302

merged 3 commits into from
Jun 1, 2022

Conversation

jfalcou
Copy link
Owner

@jfalcou jfalcou commented May 30, 2022

Ensure that g++ and clang generate this:

psrad   xmm0, 31

instead of that:

movdqa  xmm1, xmm0
pxor    xmm0, xmm0
pcmpgtd xmm0, xmm1

@jfalcou jfalcou linked an issue May 31, 2022 that may be closed by this pull request
@jfalcou jfalcou merged commit 6bdcf97 into main Jun 1, 2022
@jfalcou jfalcou deleted the fix-1297/better-x86-is_ltz branch June 1, 2022 08:27
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.

[FEATURE] Optimize some integer comparaisons
2 participants