]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[libc] Allow CPU architectures to use unoptimised string functions
authorMichael Brown <mcb30@ipxe.org>
Tue, 19 Apr 2016 15:30:49 +0000 (16:30 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 19 Apr 2016 15:30:49 +0000 (16:30 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/string.h

index 0fab6c74bfbf4c393ac345e5d7e9b1d403bcbce4..0f41820017602caa21e7dacd7a08eda50ba00b1a 100644 (file)
 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 
 #include <stddef.h>
+
+extern void * generic_memset ( void *dest, int character,
+                              size_t len ) __nonnull;
+extern void * generic_memcpy ( void *dest, const void *src,
+                              size_t len ) __nonnull;
+extern void * generic_memmove ( void *dest, const void *src,
+                               size_t len ) __nonnull;
+
 #include <bits/string.h>
 
 /* Architecture-specific code is expected to provide these functions,
@@ -18,12 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 void * memset ( void *dest, int character, size_t len ) __nonnull;
 void * memcpy ( void *dest, const void *src, size_t len ) __nonnull;
 void * memmove ( void *dest, const void *src, size_t len ) __nonnull;
-extern void * generic_memset ( void *dest, int character,
-                              size_t len ) __nonnull;
-extern void * generic_memcpy ( void *dest, const void *src,
-                              size_t len ) __nonnull;
-extern void * generic_memmove ( void *dest, const void *src,
-                               size_t len ) __nonnull;
 
 extern int __pure memcmp ( const void *first, const void *second,
                           size_t len ) __nonnull;