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

BUG: Do not use nonzero fastpath on unaligned arrays #20179

Merged
merged 1 commit into from Oct 24, 2021

Conversation

seberg
Copy link
Member

@seberg seberg commented Oct 24, 2021

The fast-path does not handle unalgined access, previously only
bools had a fast path (and bools are by definition always aligned
since they are stored in a single byte/char).

Closes gh-19592


I also prefer the "macro" check, since user-dtypes can mess with the kind. The fast-path already has an elsize > 8 assertion (but not check). But if we anticipate hardware with long long bigger than 64bits, I am happy to put it back.

The fast-path does not handle unalgined access, previously only
bools had a fast path (and bools are by definition always aligned
since they are stored in a single byte/char).

Closes numpygh-19592
@charris
Copy link
Member

charris commented Oct 24, 2021

Thanks Sebastian.

@charris charris added this to the 1.21.4 milestone Oct 24, 2021
@seberg seberg deleted the issue-19592 branch October 24, 2021 15:04
@BvB93 BvB93 modified the milestones: 1.21.4, 1.21.4 release Oct 29, 2021
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Nov 3, 2021
@charris charris removed this from the 1.21.4 release milestone Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants