Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-13 Thread Rohit Garg
Hi, Thanks for these informative answers. I believe those are 1-to-1 with the actual machine instructions. This exactly is my point. Is there a simd math library which exports vectorized functions like sin/sos/exp/log for real or complex numbers. I mean for those not wanting to program at the

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-13 Thread Rohit Garg
Hi, Thanks for these informative answers. I believe those are 1-to-1 with the actual machine instructions. This exactly is my point. Is there a simd math library which exports vectorized functions like sin/sos/exp/log for real or complex numbers. I mean for those not wanting to program at the

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-13 Thread Matt Ettus
Rohit Garg wrote: Hi, Thanks for these informative answers. I believe those are 1-to-1 with the actual machine instructions. This exactly is my point. Is there a simd math library which exports vectorized functions like sin/sos/exp/log for real or complex numbers. I mean for those

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-13 Thread Dominik Auras
Hi! I am currently struggling with the memory/cache performance of the most used inner loops in my code. For my code, I am pretty sure that most clock cycles it spends are related to cache miss. I used VTune and Cachegrind to analyze the code. But all I got was the information THAT I

[Discuss-gnuradio] Writing SIMD code with sse

2007-12-12 Thread Rohit Garg
Hi all, I was following the separate discussion on this list about writing various trig functions using vector intrinsics. I googled for it. The top few results I got were for old processors when SIMD intrinsics were new. The gcc documentation (my version is 4.1.2) has a list of intrinsics but no

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-12 Thread Eric Blossom
On Wed, Dec 12, 2007 at 11:51:20PM +0530, Rohit Garg wrote: Hi all, I was following the separate discussion on this list about writing various trig functions using vector intrinsics. I googled for it. The top few results I got were for old processors when SIMD intrinsics were new. The gcc

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-12 Thread Dominik Auras
Hi! The intrinsics are more or less C wrapper functions for assembler commands. You can find a detailed description here: http://www.intel.com/products/processor/manuals/index.htm SSE1-3 is supported by modern AMD and Intel processors. There are many possible improvements, but you need to

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-12 Thread Dominik Auras
Hi, Just found a small error. You should exchange __builtin_ia32_punpcklwd128(x,x)),16)); __builtin_ia32_punpckhwd128(x,x)),16)); (note the h/l). First ..hwd, then ..lwd. Dominik ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org

Re: [Discuss-gnuradio] Writing SIMD code with sse

2007-12-12 Thread Pascal Charest
Hi, You can find some doc on intrinc functions on MSDN. Information is also valid for gnu gcc: http://msdn2.microsoft.com/en-us/library/y0dh78ez%28VS.71%29.aspx For library using SIMD, you can start looking BLAS on wikipedia. There is some links on the page about libraries doing optimized linear