[squeak-dev] The Trunk: Kernel-cmm.568.mcz

Bert Freudenberg bert at freudenbergs.de
Tue Apr 12 08:46:41 UTC 2011


On 12.04.2011, at 08:20, Nicolas Cellier wrote:

> Bit by bit ?
> I suggest using
> http://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel
> reverse next power of two bits, then bitShift: the difference...
> 
> Or someone else will exhibit a bitBlt hack :)
> 
> Nicolas


Well, there is IntegerTest>>testBitReversal, knock yourself out ;)

I'm not sure I like the timed test but it looks like it should work. Actually, I am sure that I don't like it, but I am too lazy to fix. So there ;)

- Bert -





More information about the Squeak-dev mailing list