You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected a struct's sizeof to be the total of the sizeof each of its fields individually. This usually is true but does not seem to be the case for SIMD fields when the sizes don't total to a power of 2. I am not sure if this is really a bug or just something that needs better documentation. But it was unexpected and can be a lot of extra memory use.
Bug description
I expected a struct's
sizeof
to be the total of thesizeof
each of its fields individually. This usually is true but does not seem to be the case for SIMD fields when the sizes don't total to a power of 2. I am not sure if this is really a bug or just something that needs better documentation. But it was unexpected and can be a lot of extra memory use.Steps to reproduce
Gist from playground or code below:
output:
System information
The text was updated successfully, but these errors were encountered: