Date: Thu, 4 Sep 2025 16:50:59 +0200
On 04/09/2025 16:22, Tiago Freire wrote:
>
>>> You can't use _BitInt(384) to represent that specialized register because it needs an alignment of 64Bytes.
>> Why would a specialised 384 bit register need 64 byte alignment? What justification do you have for that?
>
> Because of the cache line.
> This is how a modern CPU works.
>
Now you are just trying to justify your mistakes after the fact. In
another reply, you said you had mixed up bits and bytes.
If you want to over-align an object, beyond the requirements of the
platform and ABI (for cache friendly data, or any other purpose), use
"alignas" just as you always do.
>
>>> You can't use _BitInt(384) to represent that specialized register because it needs an alignment of 64Bytes.
>> Why would a specialised 384 bit register need 64 byte alignment? What justification do you have for that?
>
> Because of the cache line.
> This is how a modern CPU works.
>
Now you are just trying to justify your mistakes after the fact. In
another reply, you said you had mixed up bits and bytes.
If you want to over-align an object, beyond the requirements of the
platform and ABI (for cache friendly data, or any other purpose), use
"alignas" just as you always do.
Received on 2025-09-04 14:51:08