[REBOL] Re: Arithmetic shifts
From: gabriele:colellachiara at: 18-Aug-2004 13:41
On Tuesday, August 17, 2004, 11:03:14 AM, you wrote:
TC> it may be faster but what results are you getting?
The results are correct because he is dropping the least
significant bits with AND. So you AND with 254 if you are dividing
by 2, 252 if you are dividing by 4, 244 for 8 and so on.
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/