| View previous topic :: View next topic |
| Author |
Message |
Nic
Joined: 22 Jul 2005 Posts: 8
|
Posted: Fri Jul 22, 2005 2:40 am Post subject: Dividing by small numbers causes crashing ? |
|
|
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 |
|
| Back to top |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
Posted: Fri Jul 22, 2005 4:00 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Fri Jul 22, 2005 5:06 am Post subject: |
|
|
| Or do a simple search and find this post from the Quake on PSP thread. |
|
| Back to top |
|
 |
Nic
Joined: 22 Jul 2005 Posts: 8
|
Posted: Fri Jul 22, 2005 10:40 pm Post subject: |
|
|
Thanks ector and mrbrown, that did the trick, no more crashing :)
I did search and somehow missed that post....sorry.
Thanks again,
-Nic |
|
| Back to top |
|
 |
|