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: Tim Blechmann (TimBlechmann_AT_gmx.net)
Date: Fri Jun 25 2004 - 21:49:35 EEST


> I have a denormal fix without a branch but you probably don't want to
> see it ;-)
> It's pretty simple, just OR the bits of the exponent together which
> gives either
> 0 (denormal) or 1, typecast that to float, and then multiply the
> original float by that (0.0 or 1.0). Voila, no branch, but it is
> messy looking ;-)

there is one problem ... if you multiply the denormal number with the 1
or 0, you will probably have one denormal operation on the cpu instead
of a branch ... i don't know, that's worse ...
but definitely, some benchmarks would be useful for any denormal
flushing algorithm...

cheers...

-- 
mailto:TimBlechmann_AT_gmx.de    ICQ: 96771783

After one look at this planet any visitor from outer space would say "I want to see the manager." William S. Burroughs


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

This archive was generated by hypermail 2b28 : Fri Jun 25 2004 - 21:02:19 EEST