Signed-off-by: Yi Sun <[email protected]> diff --git a/utests/utest_helper.cpp b/utests/utest_helper.cpp index 91633f0..162c47b 100644 --- a/utests/utest_helper.cpp +++ b/utests/utest_helper.cpp @@ -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; diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 0937bf2..0ebad7b 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -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); -- 1.8.5.3
_______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
