summaryrefslogtreecommitdiffstats
path: root/java/src/hdf/hdf5lib/exceptions/HDF5FileInterfaceException.java
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2022-02-08 22:47:03 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2022-02-08 22:47:03 (GMT)
commit25eb313cb379da7d41fb1c604c0bcc2574bdd49a (patch)
tree33fa686fe8f2eb25265c1e37635338d1bd404466 /java/src/hdf/hdf5lib/exceptions/HDF5FileInterfaceException.java
parent36d9a165e428eb883f9fd72b6707555536292845 (diff)
downloadhdf5-25eb313cb379da7d41fb1c604c0bcc2574bdd49a.zip
hdf5-25eb313cb379da7d41fb1c604c0bcc2574bdd49a.tar.gz
hdf5-25eb313cb379da7d41fb1c604c0bcc2574bdd49a.tar.bz2
Do not conditionally compile code that uses a pointer dereference
and assignment to copy a potentially unaligned variable to aligned automatic storage, or vice versa. Instead, always use naked `memcpy(3)`s. Disassembling the generated code reveals that the `memcpy(3)`s optimize (`-O3`) to a single `mov` instruction for x86_64, which is not strict about alignment. This change reduces the size of code and scripts by 143 lines, eases our way to cross-compilation, and avoids invoking undefined behavior.
Diffstat (limited to 'java/src/hdf/hdf5lib/exceptions/HDF5FileInterfaceException.java')
0 files changed, 0 insertions, 0 deletions