aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-03-31 20:13:18 +0200
committerMattias EngdegÄrd2023-03-31 21:37:53 +0200
commit6523359dfe212633f5bd274b29a1f5e613384c79 (patch)
treea8ad810602390d85bbd19297b8e09d647ed53968 /java
parent6f496105e392af45c2248b4523ef19804837a8a6 (diff)
downloademacs-6523359dfe212633f5bd274b29a1f5e613384c79.tar.gz
emacs-6523359dfe212633f5bd274b29a1f5e613384c79.zip
Make string-lessp vectorisation safer
Use memcpy for loading unaligned words on platforms where this can be done efficiently. This guards against problems arising from future compiler autovectorisation improvements that might cause instructions that require aligned addresses to be emitted, and should also work with an address sanitiser enabled. * src/fns.c (HAVE_FAST_UNALIGNED_ACCESS): Only define when optimising. (load_unaligned_size_t): New. (Fstring_lessp): Use load_unaligned_size_t. * src/lisp.h (UNALIGNED_LOAD_SIZE): Remove now unused macro.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions