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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Traps in floating point code
From: Erik de Castro Lopo (erikd-lad_AT_mega-nerd.com)
Date: Fri Jul 02 2004 - 11:30:07 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Jul 02 2004 - 11:21:35 EEST