From 901ab53c37089d057f3b8bfff7342443cfbdbe70 Mon Sep 17 00:00:00 2001 From: 949f45ac <949f45ac@googlemail.com> Date: Thu, 17 May 2018 10:55:45 +0200 Subject: [PATCH] Reinstate accidentally deleted uchar2Holder [ROCm/clr commit: 7bf8402d1d3e0872a2c1ef9e9e6df274309d01b2] --- projects/clr/hipamd/src/device_functions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/clr/hipamd/src/device_functions.cpp b/projects/clr/hipamd/src/device_functions.cpp index fe4951ec5a..879d354337 100644 --- a/projects/clr/hipamd/src/device_functions.cpp +++ b/projects/clr/hipamd/src/device_functions.cpp @@ -276,6 +276,13 @@ struct ucharHolder { }; } __attribute__((aligned(4))); +struct uchar2Holder { + union { + unsigned int ui[2]; + unsigned char c[8]; + }; +} __attribute__((aligned(8))); + __device__ unsigned int __byte_perm(unsigned int x, unsigned int y, unsigned int s) { struct uchar2Holder cHoldVal; struct ucharHolder cHoldKey;