in reply to Help w/ Code Optimization
So, I've replaced 10x10 by a few left shift operators. The key here is to determine how many left shifts will have to be performed for given power. Say, if you were to raise 10 to the power of 3, you'd look down at this:10^2 = 10<<3 + 10<<1; (by the way, this is may not be written as 10<<4! :)
| "There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help w/ Code Optimization
by John M. Dlugosz (Monsignor) on Dec 27, 2001 at 02:08 UTC | |
|
Re: Re: Help w/ Code Optimization
by sifukurt (Hermit) on Dec 26, 2001 at 23:10 UTC |