2001/04/10
Thank you Ben for the explanation. However, I seem to be still
confused on this point. I examined FloatMgr.h that came with CW-
Lite and find that all the references in it have the "Fpl"
prefix. I also noticed a floating point library lurking in one of
the folders as well. The creation date for this FloatMgr.h is
3/9/95 which seems pretty early. Are there possibly more than one
version of FloatMgr.h? As I downloaded CW only a few months back,
I would have expected it to be reasonably up to date. It
certainly must be later than PalmOS 2.0.
Sincerely and thanks in advance for any information.
Herb Valliant
>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/