This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Code much slower. Why?


Sorry, I missed the "download for continuation" sign.  You appear to be doing 
several things which might be suspect, but ought to be just as evident in the 
source code.  You appear to have conversions from double to integer, which 
are quite slow, but maybe didn't change between libraries, and you appear to 
be looping until some condition on the result of exp() is satisfied.  
Assuming you are running glibc-2 in default wide precision mode, if you are 
doing some sort of iteration, you may be doing many more than you intended, 
to get an extra 4 decimal places of convergence.  But all that would be 
simpler with source.

Tim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]