[linux-audio-dev] swh plugins and fixing undenormalize
Steve Harris
S.W.Harris at ecs.soton.ac.uk
Thu Jun 24 16:31:07 UTC 2004
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
More information about the Linux-audio-dev
mailing list