From db124b12551f91a2437014fb74a122ff0d0db08b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 16 Sep 2007 17:36:40 +0100 Subject: Add fls() for non-constant values. --- src/include/strings.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/include') diff --git a/src/include/strings.h b/src/include/strings.h index a087b1d50..968a7c11d 100644 --- a/src/include/strings.h +++ b/src/include/strings.h @@ -40,17 +40,13 @@ __constant_flsl ( unsigned long x ) { return r; } -#define __constant_fls(x) __constant_flsl(x) - /* We don't actually have these functions yet */ -extern int __fls ( int x ); extern int __flsl ( long x ); #define flsl( x ) \ ( __builtin_constant_p ( x ) ? __constant_flsl ( x ) : __flsl ( x ) ) -#define fls( x ) \ - ( __builtin_constant_p ( x ) ? __constant_fls ( x ) : __fls ( x ) ) +#define fls( x ) flsl ( x ) extern int strcasecmp ( const char *s1, const char *s2 ); -- cgit v1.2.3-55-g7522