#137657 - biubid_boy - Tue Aug 14, 2007 2:45 pm
Hello everyone.
I have created a software division routine in C, which basically divides by multiplying a number by (1/x) in 20.8 fixed point. I now want to compare it to the standard software division. Using the profiling functions found in TONC, I timed the routine running 10 times, then timed ten regular divisions. The results were:
QUICKDIV : 297
SOFTDIV : 2324
Where quickdiv is my routine and softdiv is the division operator in devkitARM. The results are too good to be accurate, aren't they? So what's up?
Thanks in advance,
Biubid_boy.
I have created a software division routine in C, which basically divides by multiplying a number by (1/x) in 20.8 fixed point. I now want to compare it to the standard software division. Using the profiling functions found in TONC, I timed the routine running 10 times, then timed ten regular divisions. The results were:
QUICKDIV : 297
SOFTDIV : 2324
Where quickdiv is my routine and softdiv is the division operator in devkitARM. The results are too good to be accurate, aren't they? So what's up?
Thanks in advance,
Biubid_boy.