]> granicus.if.org Git - libatomic_ops/commit
Add assertion that double-wide CAS target is aligned (msftc/x86[_64])
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jan 2017 00:03:54 +0000 (03:03 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 06:28:04 +0000 (09:28 +0300)
commit82258fade80917f1c9872a75f8e16a7af9bf06a3
treecec7b95bd584079f07cddeaa75b057f395be013d
parentd697a0c4d36870b7e1d22842fd39bfc3db69ec8f
Add assertion that double-wide CAS target is aligned (msftc/x86[_64])

* src/atomic_ops/sysdeps/msftc/x86.h [AO_ASSUME_VISTA]
(AO_double_compare_and_swap_full): Add assert() that addr pointer is
aligned according to the size of AO_double_t.
* src/atomic_ops/sysdeps/msftc/x86_64.h [AO_CMPXCHG16B_AVAILABLE
&& _MSC_VER>=1500] (AO_compare_double_and_swap_double_full): Likewise.
src/atomic_ops/sysdeps/msftc/x86.h
src/atomic_ops/sysdeps/msftc/x86_64.h