AVRco Fix64

Speed and precision

rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

AVRco Fix64

 · 
Posted: 06.07.2010 - 16:32  ·  #1
@all,

an additional Sqrt function is now in the unit uFix64. The results are (@16MHz):

Code
F1 + F2    speed : 7usec
F1 - F2    speed : 8usec
F1 * F2    speed : 250usec
F1 / F2    speed : 500usec
Sqr        speed : 250usec
Sqrt       speed : 0.5msec  result : 5 frac digits
Fix64Sqrt  speed : 2.2msec  result : 9 frac digits
Delphi Sin(3.0) result : 0.14112000806
AVRco  Sin(3.0) result : 0.141120008    5..8msec 

The execution time of a Sqrt is very important for trigonometry because it is heavily used there.
As you can see the precision is the same as with double precision float and the speed is high or at least moderate :love:

rolf
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   36   50 · Page-Gen-Time: 0.032188s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI