summaryrefslogtreecommitdiff
path: root/src/classlibnative
diff options
context:
space:
mode:
authorSinan Kaya <sinan.kaya@microsoft.com>2019-03-24 23:45:43 +0000
committerSinan Kaya <sinan.kaya@microsoft.com>2019-03-29 14:09:04 +0000
commit446393da44258d60aaa9c660602fb826c79fe6b3 (patch)
treee4a5be4b3c6613856d881fd2f05458e5a4c99ceb /src/classlibnative
parent9f2b33e9e124c1a6be86fa83c21a1a8134a9ca10 (diff)
downloadcoreclr-446393da44258d60aaa9c660602fb826c79fe6b3.tar.gz
coreclr-446393da44258d60aaa9c660602fb826c79fe6b3.tar.bz2
coreclr-446393da44258d60aaa9c660602fb826c79fe6b3.zip
Unify clang with GNUC
Enable SSE for GCC
Diffstat (limited to 'src/classlibnative')
-rw-r--r--src/classlibnative/bcltype/arraynative.inl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/classlibnative/bcltype/arraynative.inl b/src/classlibnative/bcltype/arraynative.inl
index 492d4fb3d8..5928f9d6e0 100644
--- a/src/classlibnative/bcltype/arraynative.inl
+++ b/src/classlibnative/bcltype/arraynative.inl
@@ -58,7 +58,7 @@ FORCEINLINE void InlinedForwardGCSafeCopyHelper(void *dest, const void *src, siz
++dptr;
}
-#if defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__))
+#if defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__))
if ((len & (2 * sizeof(SIZE_T))) != 0)
{
__m128 v = _mm_loadu_ps((float *)sptr);
@@ -104,7 +104,7 @@ FORCEINLINE void InlinedForwardGCSafeCopyHelper(void *dest, const void *src, siz
{
return;
}
-#else // !(defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__)))
+#else // !(defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__)))
if ((len & (2 * sizeof(SIZE_T))) != 0)
{
// Read two values and write two values to hint the use of wide loads and stores
@@ -144,7 +144,7 @@ FORCEINLINE void InlinedForwardGCSafeCopyHelper(void *dest, const void *src, siz
sptr += 4;
dptr += 4;
}
-#endif // defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__))
+#endif // defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__))
}
}
@@ -193,7 +193,7 @@ FORCEINLINE void InlinedBackwardGCSafeCopyHelper(void *dest, const void *src, si
}
}
-#if defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__))
+#if defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__))
if ((len & (2 * sizeof(SIZE_T))) != 0)
{
sptr -= 2;
@@ -242,7 +242,7 @@ FORCEINLINE void InlinedBackwardGCSafeCopyHelper(void *dest, const void *src, si
{
return;
}
-#else // !(defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__)))
+#else // !(defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__)))
if ((len & (2 * sizeof(SIZE_T))) != 0)
{
sptr -= 2;
@@ -281,7 +281,7 @@ FORCEINLINE void InlinedBackwardGCSafeCopyHelper(void *dest, const void *src, si
len -= 4 * sizeof(SIZE_T);
} while (len != 0);
return;
-#endif // defined(_AMD64_) && (defined(_MSC_VER) || defined(__clang__))
+#endif // defined(_AMD64_) && (defined(_MSC_VER) || defined(__GNUC__))
}
}