This site is no longer active and is available for archival purposes only. Registration and login is disabled.

floating point lib


floating point lib

Postby torus » Sep 3, 2005 @ 2:58pm

Hi folks.

I just want to share my excitement about the software float code from Peter Teichmann.

http://www.peter-teichmann.de/download/fp.zip

I did some number crunching (inversion and matrix multiplication of a 300*300 float-matrix). The timing shows an average increase by factor 1.8. If I consider how much time is spent in housekeeping and index calculation I'd expect speedup of the raw math primitives of at least factor two.

The code needs a bit love to compile with EVC, also it does not do any special case handling like NANs and infinites. Rounding modes are ignored as far as I can see, so the results are a bit imprecise bit still good enough to invert a 300*300 matrix.


I think for cases where some floating point precision is needed this might be a very good alternative to the built in float emulation code.
User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Re: floating point lib

Postby hm » Sep 4, 2005 @ 3:20am

User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby drgoldie » Sep 4, 2005 @ 11:01am

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby torus » Sep 4, 2005 @ 1:10pm

Attachments
matrix.cpp
(7.48 KiB) Downloaded 486 times
User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Re: floating point lib

Postby torus » Sep 4, 2005 @ 1:20pm

User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Postby drgoldie » Sep 4, 2005 @ 2:05pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby torus » Sep 4, 2005 @ 4:44pm

User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Postby StephC » Sep 4, 2005 @ 5:46pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby torus » Sep 4, 2005 @ 6:03pm

User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Postby dyn » Sep 5, 2005 @ 9:48am

User avatar
dyn
pm Member
 
Posts: 17
Joined: Dec 5, 2004 @ 10:05am


Postby hm » Sep 6, 2005 @ 7:19am

User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby drgoldie » Sep 6, 2005 @ 12:54pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby StephC » Sep 6, 2005 @ 2:53pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby drgoldie » Sep 6, 2005 @ 2:58pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron