"Herbert Valliant" <[EMAIL PROTECTED]> wrote in message
news:45104@palm-dev-forum...
>
> 2001/04/08
>
> In Mr Cho's defence, I would like to point out that the SDK
> reference (pages 573 to 578) give all the floating point API's with
> prefixes "Fpl" and not "Flp". Mr. Cho didn't transpose the
> characters; the SDK did.
>
> I thank him for bring up this problem, as it is a trap I would
> surely have fallen into a few days hence.

Actually, the problem is even deeper than that.

There are two different floating point systems in Palm OS.

The original system, with the "Fpl" prefix (Floating Point Library),
dates back to Palm OS 1.0, before there was any compiler support for
floating point.  This explains why you have calls like "FplAdd".  Since
this was part of the official Palm OS 1 API, this is documented in the
SDK Reference.  Current SDKs don't ship with the header files needed to
use these, although the system traps are still defined, as noted by all
the "Obsolete" lines in CoreTraps.h.

With PalmOS 2.0, compiler floating point support was added with the
calls listed in FloatMgr.h.  These mostly have names like "_f_add", and
are designed to be called by code generated by the compiler to handle
normal C floating point.  When Palm added these, they also added some
more utility routines, but this time, they used the "Flp" prefix
(FLoating Point).  This new floating point manager isn't documented
anywhere besides the FloatMgr.h header.

So -- the Palm OS 4.0 Reference really should kill that chapter and
replace it with something that actually matches what's implemented.
--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau



-- 
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