Re: Fwd: Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-12-14 Thread Stefan Kost
voice_buffers_mix, but it performed worse than ORC's version... > > // David > > Original Message -------- > Subject: Re: [fluid-dev] Floats and doubles, simd and interpolation > Date: Sun, 28 Nov 2010 07:11:04 +0100 > From: David Henningsson > To: fluid-dev >

Fwd: Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-12-14 Thread David Henningsson
ect: Re: [fluid-dev] Floats and doubles, simd and interpolation Date: Sun, 28 Nov 2010 07:11:04 +0100 From: David Henningsson To: fluid-dev On 2010-11-22 09:17, David Henningsson wrote: So the reason I like floats is that with SSE, you can process 4 floats simultaneously, but only 2 doubles. From r

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-12-12 Thread Stefan Kost
On 13.12.2010 03:53, David Henningsson wrote: > On 2010-12-12 21:40, Pedro Lopez-Cabanillas wrote: >> On Monday 22 November 2010, David Henningsson wrote: >>> There is a library called "ORC", anybody heard of it? You write some >>> pseudo-assembly code, and on first run ORC translates it into SSE,

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-12-12 Thread David Henningsson
On 2010-12-12 21:40, Pedro Lopez-Cabanillas wrote: On Monday 22 November 2010, David Henningsson wrote: There is a library called "ORC", anybody heard of it? You write some pseudo-assembly code, and on first run ORC translates it into SSE, MMX, Altivec, etc, or plain old C depending on your hard

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-12-12 Thread Pedro Lopez-Cabanillas
On Monday 22 November 2010, David Henningsson wrote: > There is a library called "ORC", anybody heard of it? You write some > pseudo-assembly code, and on first run ORC translates it into SSE, MMX, > Altivec, etc, or plain old C depending on your hardware. There is another library called "liboil

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-29 Thread Element Green
Nice find! Glad that issue got resolved, even if we[1] was part of the original problem ;-) Cheers, Element On Sun, Nov 28, 2010 at 8:24 AM, David Henningsson wrote: > On 2010-11-28 12:52, Pedro Lopez-Cabanillas wrote: >> >> On Saturday 27 November 2010, David Henningsson wrote: >>> >>> On 2010

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-28 Thread David Henningsson
On 2010-11-28 12:52, Pedro Lopez-Cabanillas wrote: On Saturday 27 November 2010, David Henningsson wrote: On 2010-11-27 10:35, Pedro Lopez-Cabanillas wrote: On Saturday 27 November 2010, David Henningsson wrote: Yesterday, I tried to chase down a bug I discovered - I rendered a song but a few

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-28 Thread Pedro Lopez-Cabanillas
On Saturday 27 November 2010, David Henningsson wrote: > On 2010-11-27 10:35, Pedro Lopez-Cabanillas wrote: > > On Saturday 27 November 2010, David Henningsson wrote: > Yesterday, I tried to chase down a bug I discovered - I rendered a song > but > a few notes were slightly out of t

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-27 Thread David Henningsson
On 2010-11-22 09:17, David Henningsson wrote: So the reason I like floats is that with SSE, you can process 4 floats simultaneously, but only 2 doubles. From running a perf I know that 2/3 of the time (for my testcase) was spent in the interpolation routine. Can we SIMD:ize that, we might get 3-4

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-27 Thread David Henningsson
On 2010-11-27 10:35, Pedro Lopez-Cabanillas wrote: On Saturday 27 November 2010, David Henningsson wrote: Yesterday, I tried to chase down a bug I discovered - I rendered a song but a few notes were slightly out of tune, but only when using floats, not when using doubles! [...] I wonder what i

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-27 Thread Pedro Lopez-Cabanillas
On Saturday 27 November 2010, David Henningsson wrote: > >> Yesterday, I tried to chase down a bug I discovered - I rendered a song but > >> a few notes were slightly out of tune, but only when using floats, not when > >> using doubles! [...] > > I wonder what is causing the bug you described tho

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-27 Thread David Henningsson
On 2010-11-22 19:52, Element Green wrote: Hello David, On Mon, Nov 22, 2010 at 12:17 AM, David Henningsson wrote: Just a short dump of what's been on my mind the last few weeks... Yesterday, I tried to chase down a bug I discovered - I rendered a song but a few notes were slightly out of tune

Re: [fluid-dev] Floats and doubles, simd and interpolation

2010-11-22 Thread Element Green
Hello David, On Mon, Nov 22, 2010 at 12:17 AM, David Henningsson wrote: > Just a short dump of what's been on my mind the last few weeks... > > Yesterday, I tried to chase down a bug I discovered - I rendered a song but > a few notes were slightly out of tune, but only when using floats, not when

[fluid-dev] Floats and doubles, simd and interpolation

2010-11-22 Thread David Henningsson
Just a short dump of what's been on my mind the last few weeks... Yesterday, I tried to chase down a bug I discovered - I rendered a song but a few notes were slightly out of tune, but only when using floats, not when using doubles! I never bought that doubles should sound better than floats -