Don't use "register" storage class specifier
Fixes warnings. https://bugzilla.mozilla.org/show_bug.cgi?id=984081
This commit is contained in:
parent
0082dbeae6
commit
a949cd329e
|
@ -219,7 +219,7 @@ _hb_popcount32 (uint32_t mask)
|
||||||
return __builtin_popcount (mask);
|
return __builtin_popcount (mask);
|
||||||
#else
|
#else
|
||||||
/* "HACKMEM 169" */
|
/* "HACKMEM 169" */
|
||||||
register uint32_t y;
|
uint32_t y;
|
||||||
y = (mask >> 1) &033333333333;
|
y = (mask >> 1) &033333333333;
|
||||||
y = mask - y - ((y >>1) & 033333333333);
|
y = mask - y - ((y >>1) & 033333333333);
|
||||||
return (((y + (y >> 3)) & 030707070707) % 077);
|
return (((y + (y >> 3)) & 030707070707) % 077);
|
||||||
|
@ -233,7 +233,7 @@ _hb_bit_storage (unsigned int number)
|
||||||
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
||||||
return likely (number) ? (sizeof (unsigned int) * 8 - __builtin_clz (number)) : 0;
|
return likely (number) ? (sizeof (unsigned int) * 8 - __builtin_clz (number)) : 0;
|
||||||
#else
|
#else
|
||||||
register unsigned int n_bits = 0;
|
unsigned int n_bits = 0;
|
||||||
while (number) {
|
while (number) {
|
||||||
n_bits++;
|
n_bits++;
|
||||||
number >>= 1;
|
number >>= 1;
|
||||||
|
@ -249,7 +249,7 @@ _hb_ctz (unsigned int number)
|
||||||
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
|
||||||
return likely (number) ? __builtin_ctz (number) : 0;
|
return likely (number) ? __builtin_ctz (number) : 0;
|
||||||
#else
|
#else
|
||||||
register unsigned int n_bits = 0;
|
unsigned int n_bits = 0;
|
||||||
if (unlikely (!number)) return 0;
|
if (unlikely (!number)) return 0;
|
||||||
while (!(number & 1)) {
|
while (!(number & 1)) {
|
||||||
n_bits++;
|
n_bits++;
|
||||||
|
|
Loading…
Reference in New Issue