aboutsummaryrefslogtreecommitdiff
path: root/common/md5.cpp
diff options
context:
space:
mode:
authorYotam Barnoy2010-09-01 12:41:16 +0000
committerYotam Barnoy2010-09-01 12:41:16 +0000
commitcdd27ca9438906e8bd9d1942fecd69881ff14418 (patch)
tree334240ee9f7e39d60171ec90bac47a4f21b99355 /common/md5.cpp
parent81eb3cfba157b3c45095734d5e9177a199d0c351 (diff)
downloadscummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.gz
scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.tar.bz2
scummvm-rg350-cdd27ca9438906e8bd9d1942fecd69881ff14418.zip
COMMON: changed read/write endian function to use __may_alias__ attribute
This is a better solution for the gcc aliasing problem that happens when aliasing a struct onto something else. What happens is that the compiler assumes no aliasing can happen when -O2 and -O3 are activated, and a call to READ_UINT32() followed by WRITE_UINT32() and another READ_UINT32() will be optimized to return the original read value instead of re-reading. svn-id: r52480
Diffstat (limited to 'common/md5.cpp')
0 files changed, 0 insertions, 0 deletions