search for: matchmap

Displaying 3 results from an estimated 3 matches for "matchmap".

Did you mean: matchmat
2011 Apr 04
1
[PATCH] com32: Do not use centralized bitops header in vsscanf
.... The usage of the centralized bitops in com32/lib/vsscanf.c is not correct because the bitmap that we're accessing is too large for the 'bt', 'bts' and 'btc' instructions to operate on, i.e. the instructions cannot address all the bits of the bitmap as the size of 'matchmap' is 32 bytes. This commit doesn't entirely revert db74cf6 as having centralised bitops does make sense in principle, it's just that we can't use it in vsscanf(). Also, we still need to refrain from marking set_bit() and test_bit() as static inline otherwise we will end up running i...
2011 Nov 30
1
[PATCH] vsscanf: remove unused variables
...anf.c +++ b/usr/klibc/vsscanf.c @@ -88,7 +88,6 @@ int vsscanf(const char *buffer, const char *format, va_list ap) } state = st_normal; char *sarg = NULL; /* %s %c or %[ string argument */ enum bail bail = bail_none; - int sign; int converted = 0; /* Successful conversions */ unsigned long matchmap[((1 << CHAR_BIT) + (LONG_BIT - 1)) / LONG_BIT]; int matchinv = 0; /* Is match map inverted? */ @@ -177,33 +176,27 @@ int vsscanf(const char *buffer, const char *format, va_list ap) case 'p': /* Pointer */ rank = rank_ptr; base = 0; - sign = 0; goto scan_in...
2011 Dec 04
0
[GIT PULL] klibc minor fixes
...anf.c +++ b/usr/klibc/vsscanf.c @@ -88,7 +88,6 @@ int vsscanf(const char *buffer, const char *format, va_list ap) } state = st_normal; char *sarg = NULL; /* %s %c or %[ string argument */ enum bail bail = bail_none; - int sign; int converted = 0; /* Successful conversions */ unsigned long matchmap[((1 << CHAR_BIT) + (LONG_BIT - 1)) / LONG_BIT]; int matchinv = 0; /* Is match map inverted? */ @@ -177,33 +176,27 @@ int vsscanf(const char *buffer, const char *format, va_list ap) case 'p': /* Pointer */ rank = rank_ptr; base = 0; - sign = 0; goto scan_in...