summaryrefslogtreecommitdiff
path: root/tests/run_parallel.h
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-01-24 22:46:57 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-01-24 22:51:19 +0300
commitd1ad2daa7e195c82e3e5423e31af90fb01f7307d (patch)
tree3787c4a8a4eb886395e705f9537b52e4461bf42d /tests/run_parallel.h
parent4949e9b8cb409288fcaa0553ead9704ca6219a23 (diff)
downloadlibatomic_ops-d1ad2daa7e195c82e3e5423e31af90fb01f7307d.tar.gz
Fix test_atomic failure caused unaligned AO_double_t access on x86
The failure is caused by violation of an assertion that checks AO_double_t variable is 8-byte aligned on x86. * doc/README.txt (AO_double_t): Add note about required alignment. * src/atomic_ops/sysdeps/standard_ao_double_t.h (AO_double_t): Add comment about alignment. * src/atomic_ops_stack.h (AO_stack_t): Likewise. * tests/test_atomic_include.template (test_atomicXX): Define old_w, w local variables as static (as otherwise, e.g., they could have 4-byte alignment on x86); add comment.
Diffstat (limited to 'tests/run_parallel.h')
0 files changed, 0 insertions, 0 deletions