![]() |
here's the slightly improved c code.
:
/*straight c code .00192 sec. number tested 111111113*/ |
Now the pointer contains roughly the square root of the number we are testing for prime. We will now *blaze* to the result. :rock:
|
So curiously, what C/C++ code did you compare this execution too? I suspect that one would be able to match the speed of execution without having to break down into an inline assembly at all.
|
The C code was listed in the first post as was this statement.
Quote:
|
| All times are GMT -5. The time now is 1:05 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC