Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

buffers: ensure alignment #3029

Closed
bnoordhuis opened this issue Mar 28, 2012 · 3 comments
Closed

buffers: ensure alignment #3029

bnoordhuis opened this issue Mar 28, 2012 · 3 comments
Assignees
Labels

Comments

@bnoordhuis
Copy link
Member

Make sure that buffers (fast and slow both) are always aligned on 8 or 16 byte boundaries.

Unaligned loads and stores are unsafe/unpredictable/inefficient on the architectures we support. This is particularly relevant now that it's possible to create typed arrays (int16, int32, float, double) from buffers.

@ghost ghost assigned bnoordhuis Mar 28, 2012
@bnoordhuis
Copy link
Member Author

Partially fixed in 285d8c6.

@trevnorris
Copy link

@bnoordhuis this still an issue? If it is, should be able to fully implement it in the new Buffers.

@bnoordhuis
Copy link
Member Author

No, it's been fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants