commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r7371 - gnuradio/branches/developers/trondeau/receiver


From: trondeau
Subject: [Commit-gnuradio] r7371 - gnuradio/branches/developers/trondeau/receiver/gnuradio-core/src/lib/general
Date: Mon, 7 Jan 2008 14:17:37 -0700 (MST)

Author: trondeau
Date: 2008-01-07 14:17:36 -0700 (Mon, 07 Jan 2008)
New Revision: 7371

Modified:
   
gnuradio/branches/developers/trondeau/receiver/gnuradio-core/src/lib/general/gr_math.h
Log:
Switching double stuff to float.

Modified: 
gnuradio/branches/developers/trondeau/receiver/gnuradio-core/src/lib/general/gr_math.h
===================================================================
--- 
gnuradio/branches/developers/trondeau/receiver/gnuradio-core/src/lib/general/gr_math.h
      2008-01-06 23:24:45 UTC (rev 7370)
+++ 
gnuradio/branches/developers/trondeau/receiver/gnuradio-core/src/lib/general/gr_math.h
      2008-01-07 21:17:36 UTC (rev 7371)
@@ -66,7 +66,7 @@
 
 static inline float gr_clip(float x, float clip)
 {
-  double y;
+  float y;
   if(x > clip)
     y = clip;
   else if(x < clip)
@@ -76,8 +76,8 @@
 
 static inline float gr_branchless_clip(float x, float clip)
 {
-  float x1 = fabs(x+clip);
-  float x2 = fabs(x-clip);
+  float x1 = fabsf(x+clip);
+  float x2 = fabsf(x-clip);
   x1 -= x2;
   return 0.5*x1;
 }





reply via email to

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