Help me optimize this code

BlitzPlus Forums/BlitzPlus Programming/Help me optimize this code

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

do some tests, apparently sqr is very optimized:
[CODE]
start=MilliSecs()
a=323
b=73
For i%=0 To 1000000
Sqr(a*a + b*b)
Next
Print MilliSecs()-start
Repeat
Forever
[/CODE]

and also atan2 is pretty good

(at least for me, using BP)