aboutsummaryrefslogtreecommitdiff
path: root/string/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-03 09:22:45 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-31 14:17:33 -0300
commitfccf38c51746e0817c2409bb361398f9465e0760 (patch)
tree7a2bda6afb6080ae03c68e84a99362ab125eca7e /string/Makefile
parente3397cae92af83ddbf7b9cb89d8c18cb7382fde4 (diff)
downloadglibc-fccf38c51746e0817c2409bb361398f9465e0760.zip
glibc-fccf38c51746e0817c2409bb361398f9465e0760.tar.gz
glibc-fccf38c51746e0817c2409bb361398f9465e0760.tar.bz2
string: Add internal memswap implementation
The prototype is: void __memswap (void *restrict p1, void *restrict p2, size_t n) The function swaps the content of two memory blocks P1 and P2 of len N. Memory overlap is NOT handled. It will be used on qsort optimization. Checked on x86_64-linux-gnu and aarch64-linux-gnu. Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
Diffstat (limited to 'string/Makefile')
-rw-r--r--string/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/string/Makefile b/string/Makefile
index 040a38d..850bfba 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -211,6 +211,18 @@ tests := \
tst-xbzero-opt \
# tests
+tests-static-internal := \
+ test-memswap \
+# tests-static-internal
+
+tests-internal := \
+ $(tests-static-internal) \
+ # tests-internal
+
+tests-static := \
+ $(tests-static-internal) \
+ # tests-static
+
# Both tests require the .mo translation files generated by msgfmt.
tests-translation := \
tst-strerror \