View Single Post
Old 04-29-2007, 03:51 PM   #5 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
if you cast it afterwords you've still lost accuracy (since your double overflowed). The main reason the library pow function is quick though is because it knows how to take advantage of the fpu. Since your data type needs are well defined, the easiest method might be to just define your own unsigned long integer pow.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote