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

Fixed point class & Intels GPP


Fixed point class & Intels GPP

Postby torbent » Oct 4, 2005 @ 1:54pm

torbent
pm Member
 
Posts: 1
Joined: Oct 4, 2005 @ 1:12pm


Re: Fixed point class & Intels GPP

Postby pappaxray » Oct 10, 2005 @ 11:06am

If you saturate on multiply you might get some odd behaviour depending on what the calculation is. In some cases this might not be too bad (graphical glitch) but in something like the collision this could mean you fall through the floor. Imo, its better to make sure your inputs never get that large and do an assert on your multiply function to check for overflow (check if the sign has changed, or if the top bits in your temporary (if ur doing 32x32->64) aren't all 1 or 0), you could use that check to saturate if you wanted.

Passing that float into the constructor should just compile to a constant load, might be worth checking the assembler.
pappaxray
pm Member
 
Posts: 23
Joined: Jul 28, 2004 @ 4:57pm
Location: UK


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