summaryrefslogtreecommitdiff
path: root/gpxe/src/include/strings.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
commitf2f897a1762fab84d2905f32b1c15dd7b42abb56 (patch)
treea38f51d3f1fcbf44afddb4736d549c12eaf491be /gpxe/src/include/strings.h
parent72d2959272b4616f17a97667e6dfa9d06bf109a3 (diff)
downloadsyslinux-f2f897a1762fab84d2905f32b1c15dd7b42abb56.tar.gz
gpxe: delete long since obsolete snapshot of gPXE
gPXE has been deprecated in favor of iPXE for many, many years now. It is much better than users get it directly from the iPXE project, since we should no longer need any special modifications for Syslinux use. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gpxe/src/include/strings.h')
-rw-r--r--gpxe/src/include/strings.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/gpxe/src/include/strings.h b/gpxe/src/include/strings.h
deleted file mode 100644
index c7063d68..00000000
--- a/gpxe/src/include/strings.h
+++ /dev/null
@@ -1,65 +0,0 @@
-#ifndef _STRINGS_H
-#define _STRINGS_H
-
-FILE_LICENCE ( GPL2_OR_LATER );
-
-#include <limits.h>
-#include <string.h>
-
-static inline __attribute__ (( always_inline )) int
-__constant_flsl ( unsigned long x ) {
- int r = 0;
-
-#if ULONG_MAX > 0xffffffff
- if ( x & 0xffffffff00000000UL ) {
- x >>= 32;
- r += 32;
- }
-#endif
- if ( x & 0xffff0000UL ) {
- x >>= 16;
- r += 16;
- }
- if ( x & 0xff00 ) {
- x >>= 8;
- r += 8;
- }
- if ( x & 0xf0 ) {
- x >>= 4;
- r += 4;
- }
- if ( x & 0xc ) {
- x >>= 2;
- r += 2;
- }
- if ( x & 0x2 ) {
- x >>= 1;
- r += 1;
- }
- if ( x & 0x1 ) {
- r += 1;
- }
- return r;
-}
-
-/* We don't actually have these functions yet */
-extern int __flsl ( long x );
-
-#define flsl( x ) \
- ( __builtin_constant_p ( x ) ? __constant_flsl ( x ) : __flsl ( x ) )
-
-#define fls( x ) flsl ( x )
-
-extern int strcasecmp ( const char *s1, const char *s2 );
-
-static inline __attribute__ (( always_inline )) void
-bcopy ( const void *src, void *dest, size_t n ) {
- memmove ( dest, src, n );
-}
-
-static inline __attribute__ (( always_inline )) void
-bzero ( void *s, size_t n ) {
- memset ( s, 0, n );
-}
-
-#endif /* _STRINGS_H */