Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109504652
D46417.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
885 B
Referenced Files
None
Subscribers
None
D46417.diff
View Options
diff --git a/lib/libc/aarch64/string/Makefile.inc b/lib/libc/aarch64/string/Makefile.inc
--- a/lib/libc/aarch64/string/Makefile.inc
+++ b/lib/libc/aarch64/string/Makefile.inc
@@ -25,7 +25,8 @@
strspn.S \
strcspn.S \
strpbrk.c \
- strsep.c
+ strsep.c \
+ strcat.c
#
# Add the above functions. Generate an asm file that includes the needed
diff --git a/lib/libc/aarch64/string/strcat.c b/lib/libc/aarch64/string/strcat.c
new file mode 100644
--- /dev/null
+++ b/lib/libc/aarch64/string/strcat.c
@@ -0,0 +1,20 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2024 Getz Mikalsen <getz@FreeBSD.org>
+*/
+
+#include <string.h>
+
+#undef strcat /* _FORTIFY_SOURCE */
+
+char *
+strcat(char * __restrict s, const char * __restrict append)
+{
+ char *save = s;
+
+ /* call into SIMD optimized functions */
+ stpcpy(s + strlen(s), append);
+
+ return(save);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 10:56 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16502607
Default Alt Text
D46417.diff (885 B)
Attached To
Mode
D46417: lib/libc/aarch64/string: strcat enable use of SIMD
Attached
Detach File
Event Timeline
Log In to Comment