Mike Davis <[EMAIL PROTECTED]> wrote:
> It's acting as
> though fmod(i,6) is returning zero.
That's interesting... and congratulations on the detective work.
The basic thing that comes to mind is that there are a lot of unnecessary
fp conversions going on in there. It would be very interesting to see the
assembler code generated for that function.
1. There is definitely a prototype in scope for fmod(), right?
2. What does `m68k-palmos-objdump -h' on your multisection executable say?
(If the .text section (which contains fmod) has sneaked out past 32K, this
could cause your problem. See also Eugene Chin's similar thread on
pilot.programmer.gcc entitled "Application bus error in non-fp arithmetic".)
3. Er, why don't you just use `(i % 6)'? Of course, probably this wouldn't
solve all the instances of your problem. :-)
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html