Fast math lib
-
- KVRist
- 327 posts since 13 Nov, 2002 from Germany, Darmstadt
The most operations in <cmath> (or <math.h> if you programm in plain old C) could only be faster if they are instrinsic, but that's a matter of the compiler not the library.
-
- KVRAF
- 4641 posts since 20 Feb, 2004 from Gothenburg, Sweden
Or taking advantage of SSE / MMX / Whatnot. But to make such a library I guess it's most suited for algebra.
Stefan H Singer
Musician, coder and co-founder of We made you look Web agency
Musician, coder and co-founder of We made you look Web agency
-
- KVRist
- Topic Starter
- 32 posts since 23 Feb, 2005
Thanks for the info.
Was looking at Intels Vector Math Library, but from what I gather this works on vectors and not scalers, which is what I need.
My main problem is that I have a lot of exp(...) and tan(...) calls and its choking my processor.
Was looking at Intels Vector Math Library, but from what I gather this works on vectors and not scalers, which is what I need.
My main problem is that I have a lot of exp(...) and tan(...) calls and its choking my processor.
-
- KVRAF
- 2458 posts since 3 Oct, 2002 from SF CA USA NA Earth
If the input domain of those functions is controllable, consider using a table lookup or polynomial approximation to them.gav_b wrote:My main problem is that I have a lot of exp(...) and tan(...) calls and its choking my processor.
Most math libraries not specifically designed for audio are going to be more concerned with accuracy than audio needs.
-
- KVRAF
- 4641 posts since 20 Feb, 2004 from Gothenburg, Sweden
Yeah. Google for some taylor series for exp and tan
Stefan H Singer
Musician, coder and co-founder of We made you look Web agency
Musician, coder and co-founder of We made you look Web agency