[syslinux:master] strspn.c: drop "inline"

syslinux-bot for H. Peter Anvin hpa at zytor.com
Tue Oct 12 22:45:02 PDT 2010


Commit-ID:  0d738aa71b053f185cf5fbc126b1bbb6fb8d478b
Gitweb:     http://syslinux.zytor.com/commit/0d738aa71b053f185cf5fbc126b1bbb6fb8d478b
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Tue, 12 Oct 2010 22:42:27 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Tue, 12 Oct 2010 22:43:16 -0700

strspn.c: drop "inline"

Drop "inline" from bit operations.  These should be recoded to use x86
bts/bt instructions, but for now just drop the "inline" which causes
failures on gcc 4.5 due to inlining failures.

Reported-by: Sebastian Herbszt <herbszt at gmx.de>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/lib/strspn.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/com32/lib/strspn.c b/com32/lib/strspn.c
index abbbf17..7a24820 100644
--- a/com32/lib/strspn.c
+++ b/com32/lib/strspn.c
@@ -11,12 +11,12 @@
 #define LONG_BIT (CHAR_BIT*sizeof(long))
 #endif
 
-static inline void set_bit(unsigned long *bitmap, unsigned int bit)
+static void set_bit(unsigned long *bitmap, unsigned int bit)
 {
     bitmap[bit / LONG_BIT] |= 1UL << (bit % LONG_BIT);
 }
 
-static inline int test_bit(unsigned long *bitmap, unsigned int bit)
+static int test_bit(unsigned long *bitmap, unsigned int bit)
 {
     return (int)(bitmap[bit / LONG_BIT] >> (bit % LONG_BIT)) & 1;
 }



More information about the Syslinux-commits mailing list