__sync_compare_and_swap_16 argument alignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
http://tim.klingt.org

The composer makes plans, music laughs.
  Morton Feldman


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux