diff options
author | Yi Sun <yi.sun@intel.com> | 2014-03-05 13:59:26 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-03-13 09:17:01 +0800 |
commit | 394d5d42aae84ab09cd125e55a82809630caf60d (patch) | |
tree | 3862ba3f51081784d7aa1509649b3f0b37d9027e /utests/utest_helper.hpp | |
parent | 15a1b5db83feec9e5e9484bdcd751b2fd0b9a079 (diff) | |
download | beignet-394d5d42aae84ab09cd125e55a82809630caf60d.tar.gz |
Move the defination union SF to header file utest_helper.hpp
Signed-off-by: Yi Sun <yi.sun@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 0937bf25..0ebad7b6 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); |