aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-11-05 01:01:12 +0000
committerMichael Brown <mcb30@ipxe.org>2012-11-12 16:58:49 +0000
commit603455bb0699f31c9485b98aff2749680c19a671 (patch)
tree0f3ad6fc5b3f4b9a07a2ded0a2956fa05b8f789f /src/arch
parent53f3deee06366dacd38974af7beb89aa7ce6c45e (diff)
downloadipxe-603455bb0699f31c9485b98aff2749680c19a671.zip
ipxe-603455bb0699f31c9485b98aff2749680c19a671.tar.gz
ipxe-603455bb0699f31c9485b98aff2749680c19a671.tar.bz2
[libc] Relicense x86 string.h
No code from the original source remains within this file; relicense under GPL2+ with a new copyright notice. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/include/bits/string.h43
1 files changed, 24 insertions, 19 deletions
diff --git a/src/arch/x86/include/bits/string.h b/src/arch/x86/include/bits/string.h
index 4d44c72..dce9949 100644
--- a/src/arch/x86/include/bits/string.h
+++ b/src/arch/x86/include/bits/string.h
@@ -1,28 +1,33 @@
-#ifndef ETHERBOOT_BITS_STRING_H
-#define ETHERBOOT_BITS_STRING_H
+#ifndef X86_BITS_STRING_H
+#define X86_BITS_STRING_H
+
/*
- * Taken from Linux /usr/include/asm/string.h
- * All except memcpy, memmove, memset and memcmp removed.
+ * Copyright (C) 2007 Michael Brown <mbrown@fensystems.co.uk>.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or any later version.
*
- * Non-standard memswap() function added because it saves quite a bit
- * of code (mbrown@fensystems.co.uk).
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
*/
-/*
- * This string-include defines all string functions as inline
- * functions. Use gcc. It also assumes ds=es=data space, this should be
- * normal. Most of the string-functions are rather heavily hand-optimized,
- * see especially strtok,strstr,str[c]spn. They should work, but are not
- * very easy to understand. Everything is done entirely within the register
- * set, making the functions fast and clean. String instructions have been
- * used through-out, making for "slightly" unclear code :-)
+FILE_LICENCE ( GPL2_OR_LATER );
+
+/** @file
+ *
+ * Optimised string operations
*
- * NO Copyright (C) 1991, 1992 Linus Torvalds,
- * consider these trivial functions to be PD.
*/
-FILE_LICENCE ( PUBLIC_DOMAIN );
-
#define __HAVE_ARCH_MEMCPY
extern void * __memcpy ( void *dest, const void *src, size_t len );
@@ -224,4 +229,4 @@ extern int strncmp ( const char *str1, const char *str2, size_t len );
extern size_t strlen ( const char *string );
-#endif /* ETHERBOOT_BITS_STRING_H */
+#endif /* X86_BITS_STRING_H */