From 2655003fde90bbb9bb40ed0cf0dd0b74fd51444b Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Fri, 24 May 2019 10:22:42 -0400 Subject: [PATCH] [hip] Minor fix to silence compilation warnings. - Add parenthese to silence repeative compilation warnings across projects built against hip. --- hipamd/include/hip/hcc_detail/device_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/include/hip/hcc_detail/device_functions.h b/hipamd/include/hip/hcc_detail/device_functions.h index 808ed216e4..d275bb1820 100644 --- a/hipamd/include/hip/hcc_detail/device_functions.h +++ b/hipamd/include/hip/hcc_detail/device_functions.h @@ -1007,7 +1007,7 @@ void __syncthreads() SIZE 15:11 Range: 1..32 */ -#define GETREG_IMMED(SZ,OFF,REG) (SZ << 11) | (OFF << 6) | REG +#define GETREG_IMMED(SZ,OFF,REG) (((SZ) << 11) | ((OFF) << 6) | (REG)) /* __smid returns the wave's assigned Compute Unit and Shader Engine.