* __sync_compare_and_swap_16 argument alignment
@ 2008-02-07 13:55 Tim Blechmann
0 siblings, 0 replies; only message in thread
From: Tim Blechmann @ 2008-02-07 13:55 UTC (permalink / raw)
To: gcc-help
hi all,
from my experience, the __sync_compare_and_swap_16 functions have the
signatures:
__sync_compare_and_swap_16 (type *ptr, type oldval, type newval)
that doesn't quite map to the CMPXCHG16B instruction, since the ptr
argument is required to be 16 byte aligned ...
i am not sure, but shouldn't the signature be something like:
__sync_compare_and_swap_16 (type __attribute__ ((__aligned__(16))) *ptr,
type oldval, type newval)
? (at least for the x86_64 architecture)
thanks in advance, tim
--
tim@klingt.org
http://tim.klingt.org
The composer makes plans, music laughs.
Morton Feldman
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-07 13:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 13:55 __sync_compare_and_swap_16 argument alignment Tim Blechmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).