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

floating point multiply == very very slow ?


floating point multiply == very very slow ?

Postby jaguard » Oct 19, 2004 @ 6:42pm

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby Kzinti » Oct 19, 2004 @ 6:48pm

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby hm » Oct 19, 2004 @ 7:32pm

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


Postby refractor » Oct 19, 2004 @ 7:47pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Dan East » Oct 19, 2004 @ 8:05pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby hm » Oct 19, 2004 @ 9:56pm

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


Postby jaguard » Oct 20, 2004 @ 4:49pm

I was affraid of that :(.

Ok, I have to deal with FP math. So, did anyone actually checked how exactly slow floating operations are?

1. What about floating add and sub? How slow they are?

2. What is better - translate for example 4 floating variables to fixed, multiply them altogether, then translate them back or simply multiply them using floating multiplication?
jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby xPeterx » Oct 20, 2004 @ 5:05pm

Translation from floating point to fixed point usually involves a floating point
mul so you're better off using only fixed point whenever lots of data needs to be processed.

Converting back and forth between floating point and fixed point only makes
sense when you're doing it less frequently.

But there's no reason to be afraid of fixed point.
Just know your bits and what kind of precision you need. That's all :)
xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby jaguard » Oct 20, 2004 @ 5:17pm

jaguard
pm Member
 
Posts: 230
Joined: Mar 2, 2004 @ 6:45pm


Postby xPeterx » Oct 20, 2004 @ 5:30pm

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby refractor » Oct 20, 2004 @ 8:19pm

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby xPeterx » Oct 21, 2004 @ 8:49am

xPeterx
pm Member
 
Posts: 144
Joined: Jul 28, 2003 @ 2:50pm
Location: Germany


Postby Kzinti » Oct 21, 2004 @ 9:01am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby abiemann » Oct 21, 2004 @ 3:45pm

abiemann
pm Member
 
Posts: 73
Joined: Jul 9, 2004 @ 11:26pm


Postby HTK » Oct 21, 2004 @ 3:56pm

User avatar
HTK
pm Member
 
Posts: 132
Joined: Dec 14, 2002 @ 5:40pm


Next

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