At 13:55 2001/05/25 -0400, you wrote:
>maybe
>  {
>      double         dR,dRM,r;
>
>      r = ((double)(SysRandom(0)));
>      dRM = ((double)(sysRandomMax))
>       if(dRM == 0)
>         //Prevent divide by zero

A good idea to check for divide-by-0, generally, but sysRandomMax is a 
defined constant, so this is not what is happening (I actually did check!).

I think I have traced the problem to the multiple section issue. Putting 
the two problematic routines back into the main section solves the problem.

This is, however, of grave concern to us since this application has a lot 
of mathematical manipulation (both floating point and integer) in too many 
routines to get them all into the main section. We are using mathlib for 
trig functions, but I don't think that is coming into play here.

Could there be further problems with the GCC floating point library? Does 
it have restrictions on calls from multiple sections? Why is this not 
happening every time we use a mathematical operation?

Erik
-------------------------------------------------------------------
Icefield Tools Corporation  tel: (867) 633-4264
3C Glacier Road             fax: (867) 633-4217
Whitehorse, Yukon CANADA    e-mail: [EMAIL PROTECTED]
Y1A 5S7                     internet: http://www.icefieldtools.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to