sqrt(x) = pow(x,.5)
true
sqrt(x) = pow(x,.5) = x^.5
so not true
sqrt me!
quote:
Original post by Anonymous Poster
sqrt(x) = pow(x,.5)
true
sqrt(x) = pow(x,.5) = x^.5
so not true
Wtf are you talking about, that''s completely true unless you are thinking of ^ as the xor operator.
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________
Lookup tables are alot slower than using sqrt.
Lookuptables require access to primary mem which is slow compared to using sqrt (which uses the registers)...the whole cache thing is also important, you''ll get tons of misses.
The "lookup table" opt. is a relic from the days of 486 and below.
If you are willing to loose accuracy in your Sqrt''s there are a few fast Assembler routines.
That''s the main point: It''s a tradeoff between speed and accuracy..
Lookuptables require access to primary mem which is slow compared to using sqrt (which uses the registers)...the whole cache thing is also important, you''ll get tons of misses.
The "lookup table" opt. is a relic from the days of 486 and below.
If you are willing to loose accuracy in your Sqrt''s there are a few fast Assembler routines.
That''s the main point: It''s a tradeoff between speed and accuracy..
______________________________Only dead fish go with the main-stream.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement