Hi Adrian,
On Tue, Sep 22, 2020 at 5:23 PM John Paul Adrian Glaubitz
<glaubitz@xxxxxxxxxxxxxxxxxxx> wrote:
On 9/22/20 3:27 PM, John Paul Adrian Glaubitz wrote:
That a typical bad alignment check. It should use __alignof__, not
sizeof.
Aha, I was assuming something like that already but I wasn't sure since libatomic-ops wasn't
updated for a while in Debian [1].
What would be the correct check then in [1]?
I was just re-reading the code and realized I'm dumb. Never mind.
s/sizeof/__alignof__/ should help.
Are 32-bit accesses to an address of the form 4 * n + 2 atomic?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds