commit | 04065b87ced8bc9aad204942a49253e1650af48b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Oct 28 09:41:29 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 28 09:45:48 2021 +0200 |
tree | acf438be74470cb78500d5f69b5ebc06916b66cc | |
parent | c050dc6c689e761af6c2d5a673086a1408164c6a [diff] |
MINOR: atomic: remove the memcpy() call and dependency on string.h The memcpy() call in the aarch64 version of __ha_cas_dw() is sometimes inlined and sometimes not, depending on the gcc version. It's only used to copy two void*, so let's use direct assignment instead of memcpy(). It would also be possible to change the asm code to directly write there, but it's not worth it. With this change the code is 8kB smaller with gcc-5.4.