M
Martin Brown
Guest
On 13/11/2014 04:05, josephkk wrote:
Anything that used a compiler that could generate inline FP code would
benefit enormously but if you had a noddy compiler that just had a bunch
of library routines that were either calls to the emulator or calls to
FP code in a subroutine then benefits were much less. This old page
shows the variation in different sqrt coding tricks from way back:
http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi
The inline code approximately 5x faster than the ordinary sqrt call.
How much benefit you got from the FPU depended critically on the quality
of your compiler. You often got a bit of extra precision thrown in too
since the FP stack holds intermediate results to 80bits.
The original Intel FPU had a few quirks in the trig functions which were
found when Cyrix did a full analysis for their own numeric FPU (which
was faster, more accurate and cheaper than the Intel part).
--
Regards,
Martin Brown
On Wed, 12 Nov 2014 19:29:41 -0500, "Maynard A. Philbrook Jr."
jamie_ka1lpa@charter.net> wrote:
It does not matter if they were failed or intentional. The fact remains
that a large amount of software did not force the use of a FPU, some of
it didn't even attempt to detour in software if there was one present.
Years ago I wrote a sat tracking program that optionally would switch
to the FPU if one was present, there was a speed up but it wasn't what I
called worth a fist full of money to get a CPU or add on FPU for it.
Jamie
The first program that i used that had a noticeable improvement with the
FPU was SPICE. There it made a huge difference. Similar applications had
the same kind of results.
?-)
Anything that used a compiler that could generate inline FP code would
benefit enormously but if you had a noddy compiler that just had a bunch
of library routines that were either calls to the emulator or calls to
FP code in a subroutine then benefits were much less. This old page
shows the variation in different sqrt coding tricks from way back:
http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi
The inline code approximately 5x faster than the ordinary sqrt call.
How much benefit you got from the FPU depended critically on the quality
of your compiler. You often got a bit of extra precision thrown in too
since the FP stack holds intermediate results to 80bits.
The original Intel FPU had a few quirks in the trig functions which were
found when Cyrix did a full analysis for their own numeric FPU (which
was faster, more accurate and cheaper than the Intel part).
--
Regards,
Martin Brown