From: Terje Mathisen <Terje.Mathisen@hda.hydro.com>
Subject: Re: [++] x86 FCOS (Was: Re: gcc vs Dec Unix c)
Date: 1998/01/14 [thread overview]
Message-ID: <34BC9BC4.CA76327F@hda.hydro.com> (raw)
In-Reply-To: 34BC41F9.1EF2A296@cs.wisc.edu
Andy Glew wrote:
> Sorry: the PPro and Pentium II allow FADD, FMUL, FDIV, FSQRT to run
> simultaneously with integer operations, since these are done in hardware,
> i.e. via dedicated function units and pipelines, with special sequencers
> and state machines for FDIV and FSQRT.
>
> However, the transcendentals are done in long microcode sequences,
> that essentially take over the entire micromachine. Thus, except for overlap
> at the beginning and end, the transcendentals are not done simultaneously with integer
> operations. (Except for overlap with already started long lasting operations
> like cache misses, divides, etc. - the pipeline isn't flushed (unless the microcode has
> a branch misprediction).)
OK, so I learn something new every day!
If FCOS takes about 100 cycles, and the remaining part of the test loop
somewhere between 3 and 10, the latter value when implemented with a
CALL/FCOS/RET sequence, it would still make less than 10% difference in
the actual running time.
> There are, of course, hardware assists to make the microcode run faster.
Of course! :-)
Terje
--
- <Terje.Mathisen@hda.hydro.com>
Using self-discipline, see http://www.eiffel.com/discipline
"almost all programming can be viewed as an exercise in caching"
next prev parent reply other threads:[~1998-01-14 5:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-08 5:00 gcc vs Dec Unix c fonte
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Jaap Schellekens
1998-01-09 5:00 ` cekim
1998-01-09 5:00 ` Peter Mardahl
1998-01-09 5:00 ` Craig Burley
1998-01-10 5:00 ` cekim
1998-01-10 5:00 ` Craig Burley
1998-01-13 5:00 ` cekim
1998-01-13 5:00 ` Craig Burley
1998-01-13 5:00 ` James Van Buskirk
1998-01-14 5:00 ` brianh
1998-01-14 5:00 ` James Van Buskirk
1998-01-13 5:00 ` [++] x86 FCOS (Was: Re: gcc vs Dec Unix c) Terje Mathisen
1998-01-13 5:00 ` Andy Glew
1998-01-14 5:00 ` Terje Mathisen [this message]
1998-01-13 5:00 ` gcc vs Dec Unix c Yan-Song Chen
1998-01-13 5:00 ` Greg Lindahl
1998-01-15 5:00 ` Lupo LeBoucher
1998-01-15 5:00 ` Greg Lindahl
1998-01-13 5:00 ` Rob Komar
1998-01-14 5:00 ` bmeyer
1998-01-15 5:00 ` cekim
1998-01-14 5:00 ` Donald K.Sinclair
1998-01-14 5:00 ` Rob Komar
1998-01-16 5:00 ` Torbjorn Lindgren
1998-01-17 5:00 ` Rob Komar
1998-01-14 5:00 ` cekim
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox