Re: [LAD] Floating point Denormals: C++ and Waf

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Martin Homuth-Rosemann <linuxaudio@...>
Cc: <linux-audio-dev@...>
Date: Thursday, August 2, 2012 - 3:14 pm

Hi Martin,

Can I pick your brain on how this works?

My biggest question is why to use the typedef__u32__attribute__ line
inside an inline function. Don't you only have to do this once? If
so, wouldn't you place that line outside the function?

On Thu, Aug 2, 2012 at 7:39 AM, Martin Homuth-Rosemann
wrote:

> static inline float daz( float f )

If we remove the "static" scope of this function, could we make a
header and re-use this code efficiently?

> {

Is there a 64-bit version of the same? This appears to work with a
32-bit unsigned int as a pointer, meaning that it's applicable to
32-bits. How does a "reinterpret cast" work?

What this does is check the exponent is non-zero, right? Doesn't this
also depend on the mantissa? for example, if the mantissa is 2^24-1
and the exponent is zero, is that number still a denormal?

> return f;

Thanks for the code--any further explanation would be enlightening.

Chuck
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Floating point Denormals: C++ and Waf, Harry van Haaren, (Thu Aug 2, 12:07 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, David Robillard, (Thu Aug 2, 2:46 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Paul Davis, (Thu Aug 2, 3:28 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, David Robillard, (Thu Aug 2, 4:02 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Paul Davis, (Thu Aug 2, 4:41 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, J. Liles, (Thu Aug 2, 6:24 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Martin Homuth-Rosemann, (Thu Aug 2, 12:39 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Charles Henry, (Thu Aug 2, 3:14 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Martin Homuth-Rosemann, (Thu Aug 2, 6:31 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, David Robillard, (Thu Aug 2, 6:52 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Martin Homuth-Rosemann, (Fri Aug 3, 7:40 am)
Re: [LAD] Floating point Denormals: C++ and Waf, Tim Goetze, (Thu Aug 2, 8:15 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Harry van Haaren, (Thu Aug 2, 8:56 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Tim Goetze, (Fri Aug 3, 12:08 am)
Re: [LAD] Floating point Denormals: C++ and Waf, Fons Adriaensen, (Thu Aug 2, 9:18 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Robin Gareus, (Thu Aug 2, 9:17 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Harry van Haaren, (Fri Aug 3, 2:50 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Jens M Andreasen, (Sat Aug 4, 8:51 am)
Re: [LAD] Floating point Denormals: C++ and Waf, Charles Henry, (Thu Aug 2, 3:17 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, Robin Gareus, (Thu Aug 2, 12:20 pm)
Re: [LAD] Floating point Denormals: C++ and Waf, James Warden, (Thu Aug 2, 12:33 pm)