OH! I see! Otto Moerbeek wrote [2012-02-02 16:43+0100]: > The cast might indeed be needed. For the rest: I think doing things > like h ^= h and writing a multiplication as a shift and addition is > silly: it's the compiler's job to find a good way of computing the > desired values.
(Once i copied over the algorithm a multiplication was 10 and a addition and shift 1 cycles, if i recall correctly (Cyrix 166+), and i came from a lot of nasm stuff. And yes, here the cast is definitely needed, because it's indeed a macro and that's used in multiple functions, including buffer ones with void* argument.) > -Otto Anyway - Chris Toreks algorithm really rocks, only some of its users are something stupid. --steffen
