On 03/31/2015 06:41 AM, Jonathan Wakely wrote: > This is the best I've come up with, does anyone have any better ideas > than the #else branch to hardcode alignment of 16-byte types to 16?
If there's no 16 byte type, are we convinced this matters? I mean, there isn't a 16-byte atomic instruction for 32-bit x86 (or any other 32-bit cpu of which I am aware). So we're forced to use a locking path anyway. And if we do want the alignment, do we stop pretending with all the sizeof's and alignof's and just use power-of-two size alignment for all of them, e.g. min_align = ((size & (size - 1)) || size > 16 ? 0 : size) r~