diff options
author | Michael Brown <mcb30@ipxe.org> | 2016-05-09 16:03:19 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2016-05-11 08:15:52 +0100 |
commit | 95716ece91a29f1d122741ec3dd307765d96e314 (patch) | |
tree | a1667c0153611091b46b5a765d97f4dda9505ba6 /src/arch/arm | |
parent | a966570dce690a5eba139fd941e12e4c6d445e22 (diff) | |
download | ipxe-95716ece91a29f1d122741ec3dd307765d96e314.zip ipxe-95716ece91a29f1d122741ec3dd307765d96e314.tar.gz ipxe-95716ece91a29f1d122741ec3dd307765d96e314.tar.bz2 |
[arm] Add optimised string functions for 64-bit ARM
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/include/bits/string.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/arch/arm/include/bits/string.h b/src/arch/arm/include/bits/string.h deleted file mode 100644 index 5b1c150..0000000 --- a/src/arch/arm/include/bits/string.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef BITS_STRING_H -#define BITS_STRING_H - -FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); - -/** @file - * - * String functions - * - */ - -/** - * Fill memory region - * - * @v dest Destination region - * @v character Fill character - * @v len Length - * @ret dest Destination region - */ -static inline __attribute__ (( always_inline )) void * -memset ( void *dest, int character, size_t len ) { - - /* Not yet optimised */ - generic_memset ( dest, character, len ); - return dest; -} - -/** - * Copy memory region - * - * @v dest Destination region - * @v src Source region - * @v len Length - * @ret dest Destination region - */ -static inline __attribute__ (( always_inline )) void * -memcpy ( void *dest, const void *src, size_t len ) { - - /* Not yet optimised */ - generic_memcpy ( dest, src, len ); - return dest; -} - -/** - * Copy (possibly overlapping) memory region - * - * @v dest Destination region - * @v src Source region - * @v len Length - * @ret dest Destination region - */ -static inline __attribute__ (( always_inline )) void * -memmove ( void *dest, const void *src, size_t len ) { - - /* Not yet optimised */ - generic_memmove ( dest, src, len ); - return dest; -} - -#endif /* BITS_STRING_H */ |