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

Bert Freudenberg bert at freudenbergs.de
Tue Apr 12 10:00:16 UTC 2011


On 12.04.2011, at 10:46, Bert Freudenberg wrote:

> 
> 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 -

Ah, I see you put an improvement in the inbox.

Note, however, that the test will not cover LargeIntegers. Unless you have a very very fast machine ;)

- Bert -





More information about the Squeak-dev mailing list