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
Leading zeros and other bit manipulations #190
Conversation
$id::from_slice_unaligned(elems) | ||
} | ||
|
||
#[cfg_attr(not(target_arch = "wasm32"), test)] #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to split these into two lines - rustfmt chokes on these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
For the following architectures you need to:
It looks like these are not available in aarch64:
And in s390x:
Both appears to be bugs in the respective LLVM backends. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
Turns out aarch64 has instructions for ctlz and ctpop. We should add those to |
Please ping me when CI is green :) I try to check on this every now and then, but if you don't hear from me, then just ping me :D |
The remaining CI failures seem to be unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this looks good. I've restarted the failing build bots, but yeah the failures look unrelated. Do you want to rebase this into a single commit ?
Also could you open an issue about optimizing the aarch64 intrinsics here (and maybe include there adding assert_instr tests for those) ? |
It seemed like every s390x intrinsic was failing so I just disabled them entirely |
@TheIronBorn You have contributed a lot to the crate, you know it's structure, have good judgement, and I think it would be awesome if you could be a maintainer of |
#188