Commit ID: 1004FB6B9E14CFB6695
CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2012/05/18 21:07:59 UTC
Modified files:
kern/c : arc4random_roundhash.c
Log message:
optimisation: use int as “register-wide, fast” type (not register_t, as
that’s a long on amd64 where int is faster) instead of the smallest one
that matches the content (uint8_t) – tested on sparc and i386
interestingly enough, it doesn’t change sparc but confuses the register
allocator on i386 when you use
pool &= 31;
[…]
pools[pool++] = h;
instead, so I didn’t do that, even if it looks more natural and was the
reason I did those measurements in the first place…
To generate a diff of this changeset, execute the following commands:
cvs -R rdiff -kk -upr1.3 -r1.4 src/kern/c/arc4random_roundhash.c