NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: standards/52571 (max_align_t has smaller alignment than double)
The following reply was made to PR standards/52571; it has been noted by GNATS.
From: =?UTF-8?Q?J=C3=B6rg_Sonnenberger?= <joerg%bec.de@localhost>
To: gnats-bugs%netbsd.org@localhost, standards-manager%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, riastradh%NetBSD.org@localhost,
bruno%clisp.org@localhost
Cc:
Subject: Re: standards/52571 (max_align_t has smaller alignment than double)
Date: Wed, 11 Sep 2024 21:24:12 +0200
GCC has two different alignments. It has a minimal ABI alignment and a
preferred alignment. In the SYSV ABI for i386, the biggest alignment is
32bit. It is beneficial for certain types to aligned more if it can be
done cheaply, that's why a global variable of type double for example is
naturally aligned.
Joerg
Home |
Main Index |
Thread Index |
Old Index