|
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
|