From 91aa188fbbcbf572ec11ff977ac206c984dad991 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 19 Apr 2016 16:30:49 +0100 Subject: [PATCH] [libc] Allow CPU architectures to use unoptimised string functions Signed-off-by: Michael Brown --- src/include/string.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/include/string.h b/src/include/string.h index 0fab6c74..0f418200 100644 --- a/src/include/string.h +++ b/src/include/string.h @@ -10,6 +10,14 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include + +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 /* 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;