someone wrote:
>Is sin/pow not implemented natively by the floating point unit of the ARM
>processor?

Very few hardware RISC CPU FPU's implement transcendental functions
directly;  and, last I heard, none of the "Palm Ready" ARM CPU's even
had an FPU.

For non-armlet code, the interfaces to MathLib are very easy to use.

The libm source is well tested code of high accuracy.  There's also source
code to implement your own trig functions in the book "Advanced Palm
Programming".  And depending on your performance or accuracy needs,
the simple series approximations for exp() and log() might work.
I used the latter in the cbasPad5 armlet in order to keep the code smaller
and more cache friendly.


IMHO. YMMV.

Ron Nicholson
HotPaw Productions
 <http://www.hotpaw.com/rhn/hotpaw> 

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

Reply via email to