diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-01-01 04:04:00 +0200 |
---|---|---|
committer | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-01-01 04:04:54 +0200 |
commit | b690870238b0b468355ec0d5b83c5b43b00f8aa6 (patch) | |
tree | e72456da0ad5d0caf9547630c1dcbf74c430704e /COPYING | |
parent | 6d1e5bf3c2300623153479fd43c08a5874dacbbc (diff) |
Fix strict aliasing problems
Currently the cast between uint32_t and uint64_t pointers
breaks strict aliasing rules and needs -fno-strict-aliasing
option as a workaround, otherwise the code gets miscompiled.
But -fno-strict-aliasing can seriously inhibit optimization
possibilities. For example, performance of 1 thread
on Cell PPU (using Altivec instructions):
CFLAGS="-O3 -mcpu=cell -fno-strict-aliasing" - 1.79 khash/sec
CFLAGS="-O3 -mcpu=cell -fstrict-aliasing" - 2.60 khash/sec
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions