From 89a9aa8b2aa049c36fe6e815699a090a2756b5a4 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Thu, 1 Dec 2016 04:39:21 +0900 Subject: [PATCH] Uses portable ROTATE_LEFT for x86/Linux (dotnet/coreclr#8367) Commit migrated from https://github.com/dotnet/coreclr/commit/8421585791a6a8d7c7237b673944474643f06a6b --- src/coreclr/src/utilcode/md5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/utilcode/md5.cpp b/src/coreclr/src/utilcode/md5.cpp index 1c7b31f9..8d6f8a3 100644 --- a/src/coreclr/src/utilcode/md5.cpp +++ b/src/coreclr/src/utilcode/md5.cpp @@ -132,7 +132,7 @@ void MD5::GetHashValue(MD5HASHDATA* phash) // // but our compiler has an intrinsic! - #if defined(_ARM_) && defined(PLATFORM_UNIX) + #if (defined(_X86_) || defined(_ARM_)) && defined(PLATFORM_UNIX) #define ROL(x, n) (((x) << (n)) | ((x) >> (32-(n)))) #define ROTATE_LEFT(x,n) (x) = ROL(x,n) #else -- 2.7.4