Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Arithmetic shifts

From: gabriele:colellachiara at: 18-Aug-2004 13:41

Hi Tom, 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. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/