On Tue, 14 Oct 2003, Ron Nicholson wrote:
> If the numbers are in a reasonable range (approx 1 <= x < 2^31, etc.), > and you don't care about rounding accuracy, it's not hard to extract the > exponent and mantissa bits from an fp double and do a shift, and with > much less than 3k of compiled code plus globals.
I'm having to do math with those doubles as well, which apparently also breaks without globals (at least on OS versions lower than 5.0... probably saved by PACE in 5.0+). Oh well... I can do this easily enough in the calling app. Ugly workaround, but if I have to do it somehow...
Actually, no globals should be needed for FP math. I thought prc-tools used all the math routines in Palm OS, and they don't require globals for support. I know that's how CodeWarrior does its 68K implementation of FP.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
