afl-fuzz.c
static u32 count_non_255_bytes(u8* mem) {

  u32* ptr = (u32*)mem;
  u32  i   = (afl_map_size >> 2);
  u32  ret = 0;

  while (i--) {

    u32 v = *(ptr++);

    /* This is called on the virgin bitmap, so optimize for the most likely
       case. */

    if (v == 0xffffffff) continue;
    if ((v & FF(0)) != FF(0)) ret++;
    if ((v & FF(1)) != FF(1)) ret++;
    if ((v & FF(2)) != FF(2)) ret++;
    if ((v & FF(3)) != FF(3)) ret++;

  }

  return ret;

}
/* Count the number of non-255 bytes set in the bitmap. Used strictly for the
   status screen, several calls per second or so. */
Count the number of non-255 bytes set in the bitmap. Used strictly for the
status screen, several calls per second or so.
Count the number of non - 255 bytes set in the bitmap . Used strictly for the status screen several calls per second or so .
static u32 count_non_255_bytes(u8* mem) {
  u32* ptr = (u32*)mem;
  u32  i   = (afl_map_size >> 2);
  u32  ret = 0;
  while (i--) {
    u32 v = *(ptr++);
    if (v == 0xffffffff) continue;
    if ((v & FF(0)) != FF(0)) ret++;
    if ((v & FF(1)) != FF(1)) ret++;
    if ((v & FF(2)) != FF(2)) ret++;
    if ((v & FF(3)) != FF(3)) ret++;
  }
  return ret;
}
static u32 count_non_255_bytes ( u8 * mem ) { u32 * ptr = ( u32 * ) mem ; u32 i = ( afl_map_size >> 2 ) ; u32 ret = 0 ; while ( i -- ) { u32 v = * ( ptr ++ ) ; if ( v == 0xffffffff ) continue ; if ( ( v & FF ( 0 ) ) != FF ( 0 ) ) ret ++ ; if ( ( v & FF ( 1 ) ) != FF ( 1 ) ) ret ++ ; if ( ( v & FF ( 2 ) ) != FF ( 2 ) ) ret ++ ; if ( ( v & FF ( 3 ) ) != FF ( 3 ) ) ret ++ ; } return ret ; }
Count the number of non-255 bytes set in the bitmap.
Count the number of non - 255 bytes set in the bitmap .
/* This is called on the virgin bitmap, so optimize for the most likely
       case. */