aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-10-12 22:42:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-10-12 22:43:16 -0700
commit0d738aa71b053f185cf5fbc126b1bbb6fb8d478b (patch)
treeb5704d02934a70f61ba05894f905b541a16fa98e
parentb567fbcbd4ae3b7a3e3dd7ccc25fc7e04b2da28e (diff)
downloadsyslinux-0d738aa71b053f185cf5fbc126b1bbb6fb8d478b.tar.gz
syslinux-0d738aa71b053f185cf5fbc126b1bbb6fb8d478b.tar.xz
syslinux-0d738aa71b053f185cf5fbc126b1bbb6fb8d478b.zip
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@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/lib/strspn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/strspn.c b/com32/lib/strspn.c
index abbbf175..7a248205 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;
}