AVRco Fix64

Speed and precision

rh
Administrator
Avatar
Geschlecht:
Herkunft: Germany
Alter: 25
Homepage: e-lab.de
Beiträge: 5558
Dabei seit: 03 / 2002
Betreff:

AVRco Fix64

 · 
Gepostet: 06.07.2010 - 16:32 Uhr  ·  #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
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.
MySQL Queries: 15 · Cache Hits: 14   36   50 · Page-Gen-Time: 0.026368s · Speichernutzung: 2 MB · GZIP: ein · Viewport: SMXL-HiDPI