Dividing by small numbers causes crashing ?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Nic
Posts: 8
Joined: Fri Jul 22, 2005 2:34 am

Dividing by small numbers causes crashing ?

Post by Nic »

In the Quake port division by small numbers (i.e. around 0.00001 I think) can cause the PSP to hang. Has anyone else come across this? Any ideas how to get round it without checking before each division. I'm assuming it assumes zero and therefore crashes.

Any thoughts? I'm really stuck on this one.

-Nic
ector
Posts: 195
Joined: Thu May 12, 2005 10:22 pm

Post by ector »

Get a MIPS manual, find how to disable floating point exceptions, and disable floating point exceptions. Or find a way to catch floating point exceptions and deal with them.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Or do a simple search and find this post from the Quake on PSP thread.
Nic
Posts: 8
Joined: Fri Jul 22, 2005 2:34 am

Post by Nic »

Thanks ector and mrbrown, that did the trick, no more crashing :)

I did search and somehow missed that post....sorry.

Thanks again,
-Nic
Post Reply