Re: [linux-audio-dev] swh plugins and fixing undenormalize

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

Subject: Re: [linux-audio-dev] swh plugins and fixing undenormalize
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Thu Jun 24 2004 - 19:31:07 EEST


On Thu, Jun 24, 2004 at 01:10:37 -0300, Juan Linietsky wrote:
> > > > inline float FlushToZero( volatile float f )
> > > > {
> > > > f += 9.8607615E-32f;
> > > > return f - 9.8607615E-32f;
> > > > }
>
> That actually looks nice... since thanks to writing "volatile float f",
> the optimizer should not touch it.. it' the same thing than
> when one accsses directly to the harware using pointers
> to memmaped registers.. lack of using "volatile" often
> ends up in non-working code..

Ah, yes, I guess volatile should mean that. Hmmm...

- Steve


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

This archive was generated by hypermail 2b28 : Thu Jun 24 2004 - 19:22:31 EEST