* Floating-point questions
@ 2005-01-06 19:37 Karl Lessard
0 siblings, 0 replies; only message in thread
From: Karl Lessard @ 2005-01-06 19:37 UTC (permalink / raw)
To: linux-mips
Hi all,
I just want to make sure that I understand correctly the behavior of
floating-points on systems without
FPU. There is 2 way for doing floating-point operations:
The first is to let the CPU generate exceptions on a FP operation call ,
which are handl e by the kernel that do the job in software,
using integers only.
The second is to build your app using the -msoft-float compilation flag,
making GCC to convert itself the FP operations
to integer operations, using its own libraries.
Also, I've test the both methods with simple float operations, and I
figured suprisingly that the first method is a bit
faster (I though the overhead would have been larger than the second one).
Do I miss something? Is there anything I can do to optimize
significantly float operations?
Thanks a lot,
Karl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-06 19:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 19:37 Floating-point questions Karl Lessard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox