[opengtl-commits] [440] remove the fabs function

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 440
Author:   cyrille
Date:     2008-10-10 00:44:23 +0200 (Fri, 10 Oct 2008)

Log Message:
-----------
remove the fabs function

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass1.shiva
    trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass2.shiva


Modified: trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass1.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass1.shiva	2008-10-09 22:44:01 UTC (rev 439)
+++ trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass1.shiva	2008-10-09 22:44:23 UTC (rev 440)
@@ -9,11 +9,6 @@
     v[idx] = v[ idx ] + h;
     return v;
   }
-  float fabs( float v )
-  {
-    if( v < 0.0 ) return -v;
-    return v;
-  }
   float computeGreen( float2 coord, image1 img )
   {
     float g8 = img.sampleNearest( coordAdj( coord, -1, 1 ) );

Modified: trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass2.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass2.shiva	2008-10-09 22:44:01 UTC (rev 439)
+++ trunk/OpenGTL/OpenShiva/tests/raw/PixelGroupingPass2.shiva	2008-10-09 22:44:23 UTC (rev 440)
@@ -13,11 +13,6 @@
    }
    return (v1+v3)/2 + (l2 * 2-l1-l3)/4;
   }
-  float fabs( float v )
-  {
-    if( v < 0.0 ) return -v;
-    return v;
-  }
   float clamp( float v)
   {
     if( v > 1.0 )


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/