From c9db90b0778c054702d5b1cbd07b50962791371d 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/hip commit: 8303bfdffdfb5248c34d62d004821f0f8270eba9] --- projects/hip/src/device_functions.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/hip/src/device_functions.cpp b/projects/hip/src/device_functions.cpp index fe4951ec5a..879d354337 100644 --- a/projects/hip/src/device_functions.cpp +++ b/projects/hip/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;