diff options
author | Matt Turner <mattst88@gmail.com> | 2019-09-04 21:04:47 -0700 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2019-10-08 09:27:43 +1100 |
commit | ee9ac1cd8eb988fea70841eae211b11355711416 (patch) | |
tree | 87b5a90a37407f7b690b330587c01c74c5d23525 /README.amiga | |
parent | 4f89f09f9b3db7f542b7029c55aad389a59c9a02 (diff) | |
download | perl-ee9ac1cd8eb988fea70841eae211b11355711416.tar.gz |
Digest-MD5: Consolidate byte-swapping paths
The code guarded by #ifndef U32_ALIGNMENT_REQUIRED attempts to optimize
byte-swapping by doing unaligned loads, but accessing data through
unaligned pointers is undefined behavior in C. Moreover, compilers are
more than capable of recognizing these open-coded byte-swap patterns and
emitting a bswap instruction, or an unaligned load instruction, or a
combined load, etc. There's no need for multiple paths to attain the
desired result.
See https://rt.perl.org/Ticket/Display.html?id=133495
Diffstat (limited to 'README.amiga')
0 files changed, 0 insertions, 0 deletions