diff options
Diffstat (limited to 'src/atomic_ops/sysdeps/msftc/x86_64.h')
-rw-r--r-- | src/atomic_ops/sysdeps/msftc/x86_64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/atomic_ops/sysdeps/msftc/x86_64.h b/src/atomic_ops/sysdeps/msftc/x86_64.h index 41df6e2..c06d0e9 100644 --- a/src/atomic_ops/sysdeps/msftc/x86_64.h +++ b/src/atomic_ops/sysdeps/msftc/x86_64.h @@ -186,6 +186,8 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, AO_t new_val1, AO_t new_val2) { __int64 comparandResult[2]; + + assert(((size_t)addr & (sizeof(AO_double_t) - 1)) == 0); comparandResult[0] = old_val1; /* low */ comparandResult[1] = old_val2; /* high */ return _InterlockedCompareExchange128((volatile __int64 *)addr, |