src/slz.c
/* sets <count> BYTES to -32769 in <refs> so that any uninitialized entry will
 * verify (pos-last-1 >= 32768) and be ignored. <count> must be a multiple of
 * 128 bytes and <refs> must be at least one count in length. It's supposed to
 * be applied to 64-bit aligned data exclusively, which makes it slightly
 * faster than the regular memset() since no alignment check is performed.
 */
sets  BYTES to -32769 in  so that any uninitialized entry will
verify (pos-last-1 >= 32768) and be ignored.  must be a multiple of
128 bytes and  must be at least one count in length. It's supposed to
be applied to 64-bit aligned data exclusively, which makes it slightly
faster than the regular memset() since no alignment check is performed.
sets BYTES to - 32769 in so that any uninitialized entry will verify ( pos - last - 1 > = 32768 ) and be ignored . must be a multiple of 128 bytes and must be at least one count in length . It ' s supposed to be applied to 64 - bit aligned data exclusively which makes it slightly faster than the regular memset () since no alignment check is performed .
void reset_refs(union ref *refs, long count)
{
	union ref *end = (void *)refs + count;
	do {
		refs[ 0].by64 = -32769;
		refs[ 1].by64 = -32769;
		refs[ 2].by64 = -32769;
		refs[ 3].by64 = -32769;
		refs[ 4].by64 = -32769;
		refs[ 5].by64 = -32769;
		refs[ 6].by64 = -32769;
		refs[ 7].by64 = -32769;
		refs[ 8].by64 = -32769;
		refs[ 9].by64 = -32769;
		refs[10].by64 = -32769;
		refs[11].by64 = -32769;
		refs[12].by64 = -32769;
		refs[13].by64 = -32769;
		refs[14].by64 = -32769;
		refs[15].by64 = -32769;
		refs += 16;
	} while (refs < end);
}
void reset_refs ( union ref * refs , long count ) { union ref * end = ( void * ) refs + count ; do { refs [ 0 ] . by64 = -32769 ; refs [ 1 ] . by64 = -32769 ; refs [ 2 ] . by64 = -32769 ; refs [ 3 ] . by64 = -32769 ; refs [ 4 ] . by64 = -32769 ; refs [ 5 ] . by64 = -32769 ; refs [ 6 ] . by64 = -32769 ; refs [ 7 ] . by64 = -32769 ; refs [ 8 ] . by64 = -32769 ; refs [ 9 ] . by64 = -32769 ; refs [ 10 ] . by64 = -32769 ; refs [ 11 ] . by64 = -32769 ; refs [ 12 ] . by64 = -32769 ; refs [ 13 ] . by64 = -32769 ; refs [ 14 ] . by64 = -32769 ; refs [ 15 ] . by64 = -32769 ; refs += 16 ; } while ( refs < end ) ; }
sets <count> BYTES to -32769 in <refs> so that any uninitialized entry will
 verify (pos-last-1 >= 32768) and be ignored.
sets <count > BYTES to - 32769 in <refs > so that any uninitialized entry will verify ( pos - last - 1 > = 32768 ) and be ignored .
/* avoid a shift/mask by casting to void* */