diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2023-10-26 17:07:21 +0100 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2023-11-13 16:50:44 +0000 |
commit | 3d7090f14b13312320e425b27dcf0fe72de026fd (patch) | |
tree | 907257f5525b5a709cc5e3ad04845f95c77ff2b9 /sysdeps/aarch64/multiarch/memset_zva64.S | |
parent | 9627ab99b50d250c6dd3001a3355aa03692f7fe5 (diff) | |
download | glibc-3d7090f14b13312320e425b27dcf0fe72de026fd.tar.gz glibc-3d7090f14b13312320e425b27dcf0fe72de026fd.tar.xz glibc-3d7090f14b13312320e425b27dcf0fe72de026fd.zip |
AArch64: Add memset_zva64
Add a specialized memset for the common ZVA size of 64 to avoid the overhead of reading the ZVA size. Since the code is identical to __memset_falkor, remove the latter. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/aarch64/multiarch/memset_zva64.S')
-rw-r--r-- | sysdeps/aarch64/multiarch/memset_zva64.S | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysdeps/aarch64/multiarch/memset_zva64.S b/sysdeps/aarch64/multiarch/memset_zva64.S new file mode 100644 index 0000000000..13f45fd3d8 --- /dev/null +++ b/sysdeps/aarch64/multiarch/memset_zva64.S @@ -0,0 +1,27 @@ +/* Optimized memset for zva size = 64. + Copyright (C) 2023 Free Software Foundation, Inc. + + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library. If not, see + <https://www.gnu.org/licenses/>. */ + +#include <sysdep.h> + +#define ZVA64_ONLY 1 +#define MEMSET __memset_zva64 +#undef libc_hidden_builtin_def +#define libc_hidden_builtin_def(X) + +#include "../memset.S" |