pike.git / src / stuff.c

version» Context lines:

pike.git/src/stuff.c:23:    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,    };    register unsigned int tmp; -  if(tmp=(x>>16)) +  if((tmp=(x>>16)))    { -  if(x=(tmp>>8)) return bit[x]+24; +  if((x=(tmp>>8))) return bit[x]+24;    return bit[tmp]+16;    } -  if(tmp=(x>>8)) return bit[tmp]+8; +  if((tmp=(x>>8))) return bit[tmp]+8;    return bit[x];   }         /* Return the number of bits in a 32-bit integer */   int count_bits(unsigned INT32 x)   {   #define B(X) X+0,X+1,X+1,X+2,\    X+1,X+2,X+2,X+3,\    X+1,X+2,X+2,X+3,\
pike.git/src/stuff.c:57:       return (bits[x & 255] +    bits[(x>>8) & 255] +    bits[(x>>16) & 255] +    bits[(x>>24) & 255]);   }      /* Return true for integers with more than one bit set */   int is_more_than_one_bit(unsigned INT32 x)   { -  return ((x & 0xaaaaaaaa) && (x & 0x55555555)) || -  ((x & 0xcccccccc) && (x & 0x33333333)) || -  ((x & 0xf0f0f0f0) && (x & 0x0f0f0f0f)) || -  ((x & 0xff00ff00) && (x & 0x00ff00ff)) || -  ((x & 0xff00ff00) && (x & 0x00ff00ff)) || -  ((x & 0xffff0000) && (x & 0x0000ffff)); +  return ((x & 0xaaaaaaaaUL) && (x & 0x55555555UL)) || +  ((x & 0xccccccccUL) && (x & 0x33333333UL)) || +  ((x & 0xf0f0f0f0UL) && (x & 0x0f0f0f0fUL)) || +  ((x & 0xff00ff00UL) && (x & 0x00ff00ffUL)) || +  ((x & 0xff00ff00UL) && (x & 0x00ff00ffUL)) || +  ((x & 0xffff0000UL) && (x & 0x0000ffffUL));   }