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;
 }



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to