[linux-audio-dev] Traps in floating point code

Erik de Castro Lopo erikd-lad at mega-nerd.com
Fri Jul 2 08:30:07 UTC 2004


On Thu, 1 Jul 2004 09:14:46 +0100
Steve Harris <S.W.Harris at ecs.soton.ac.uk> wrote:

> On Wed, Jun 30, 2004 at 11:09:28 +0200, Tim Goetze wrote:
> > so if you want quick fractional sample lookups, the best option on x86
> > i see is to manually "fldcw" before and after your sample loop, and
> > use lrintf() or "fistpl" directly to obtain integer indices inside
> > the loop.
> 
> I wonder why gcc doenst spot that?

Something I am about to do with the Rabbit is add an extra check
during "make check".

This test will compile the file I am interested in into assembler
and then greps the assembler output for "fldcw". If it finds one,
the test fails and if it doesn't, the test passes.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
Never argue with stupid people. They'll just drag you down to
their level and beat you with experience



More information about the Linux-audio-dev mailing list