commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/02: volk: negate real part of 32fc_s32f_


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/02: volk: negate real part of 32fc_s32f_power_32fc to fix results.
Date: Fri, 10 Jan 2014 20:39:57 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 43ab0789f6b2b92a703bc74475e4734ba2eb64a8
Author: Tom Rondeau <address@hidden>
Date:   Fri Jan 10 00:04:45 2014 -0500

    volk: negate real part of 32fc_s32f_power_32fc to fix results.
    
    Addresses issue #629.
---
 volk/kernels/volk/volk_32fc_s32f_power_32fc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/volk/kernels/volk/volk_32fc_s32f_power_32fc.h 
b/volk/kernels/volk/volk_32fc_s32f_power_32fc.h
index d4a1d17..b9dd13b 100644
--- a/volk/kernels/volk/volk_32fc_s32f_power_32fc.h
+++ b/volk/kernels/volk/volk_32fc_s32f_power_32fc.h
@@ -9,7 +9,7 @@
 static inline lv_32fc_t __volk_s32fc_s32f_power_s32fc_a(const lv_32fc_t exp, 
const float power){
     const float arg = power*atan2f(lv_creal(exp), lv_cimag(exp));
     const float mag = powf(lv_creal(exp)*lv_creal(exp) + 
lv_cimag(exp)*lv_cimag(exp), power/2);
-    return mag*lv_cmake(cosf(arg), sinf(arg));
+    return mag*lv_cmake(-cosf(arg), sinf(arg));
 }
 
 #ifdef LV_HAVE_SSE



reply via email to

[Prev in Thread] Current Thread [Next in Thread]