SWDEV-280131 - Fix __half2 member access bug

Change-Id: Ic11750d18e4ba47446a7e494c3089a19cb4df783
This commit is contained in:
Sarbojit Sarkar committed 2021-04-07 12:12:02 -04:00
1 والد b1d78e4096
کامیت 83a25eb5b5
3 files changed
+7 -4

No files matched your search

@@ -329,7 +329,7 @@ THE SOFTWARE.
// BEGIN STRUCT __HALF2
struct __half2 {
protected:
public:
union {
static_assert(
sizeof(_Float16_2) == sizeof(unsigned short[2]), "");
@@ -340,7 +340,7 @@ THE SOFTWARE.
unsigned short y;
};
};
public:
// CREATORS
__host__ __device__
__half2() = default;
@@ -59,10 +59,10 @@ struct __half2_raw {
// BEGIN STRUCT __HALF2
struct __half2 {
protected:
public:
__half x;
__half y;
public:
// CREATORS
__half2() = default;
__half2(const __half2_raw& ix)