Move the defination union SF to header file utest_helper.hpp
authorYi Sun <yi.sun@intel.com>
Wed, 5 Mar 2014 05:59:26 +0000 (13:59 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 13 Mar 2014 01:17:01 +0000 (09:17 +0800)
Signed-off-by: Yi Sun <yi.sun@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
utests/utest_helper.cpp
utests/utest_helper.hpp

index 91633f0..162c47b 100644 (file)
@@ -648,20 +648,6 @@ int cl_check_image(const int *img, int w, int h, const char *bmp)
   return (float(discrepancy) / float(n) > max_error_ratio) ? 0 : 1;
 }
 
-typedef struct
-{
-  unsigned int mantissa:23;
-  unsigned int exponent:8;
-  unsigned int sign:1;
-} FLOAT;
-
-typedef union
-{
-  float f;
-  unsigned int i;
-  FLOAT spliter;
-} SF;
-
 const float cl_FLT_ULP(float float_number)
 {
   SF floatBin, ulpBin, ulpBinBase;
index 0937bf2..0ebad7b 100644 (file)
@@ -184,6 +184,21 @@ enum {
   BIN = 2
 };
 
+/* The SF is float type spliter*/
+typedef struct
+{
+  unsigned int mantissa:23;
+  unsigned int exponent:8;
+  unsigned int sign:1;
+} FLOAT;
+
+typedef union
+{
+  float f;
+  unsigned int i;
+  FLOAT spliter;
+} SF;
+
 /* Init OpenCL */
 extern int cl_ocl_init(void);