On Sun, 12 Mar 2006, Linus Torvalds wrote: > > u64 value = *(u64 *)src; > src += 8; > hash = value % 4294967291u; Btw, this assumes the "only hash every 8 bytes" at the source, in which case this is ok even on architectures that need aligned reads. For the non-aligned reads, you'd need your "shift the value" approach. Linus - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html