-
Notifications
You must be signed in to change notification settings - Fork 109
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
X86-specific C support library functions #68
Comments
I think the only one I really use is bzhi_u64. I remember the performance boost was nice (but not earth shattering) on my Intel desktop in the Lab, but now I'm using an AMD ryzen on my home computer and I think the bmi instructions are actually slower than the shift and mask version:
So it might be worth making it optional anyway |
I just ran into this, or something similar, on trying to compile
and many other similar errors. On my copy there are instances of |
I think it's probably best to just remove these intrinsics for portability now that arm based macs are something we will want to support |
Removed in 55a91e5 |
I recognize that this is surely not a huge priority, but:
lib/int128/sail.c
andlib/sail.c
each make use of X86-specific built-ins and__attribute__((target ("bmi2")))
. This means that the resulting C translations are necessarily post-Haswell X86 only, which is not great (though one assumes the performance gain from BMI2 for bit twiddling is considerable).The text was updated successfully, but these errors were encountered: