Detect SSE4.1 support for Subzero.
Bug swiftshader:20
Change-Id: I20c2ab7cb4c00c365520ff8b8500f7594127498b
Reviewed-on: https://swiftshader-review.googlesource.com/8468
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Common/Math.cpp b/src/Common/Math.cpp
index fcf7eca..290d4ab 100644
--- a/src/Common/Math.cpp
+++ b/src/Common/Math.cpp
@@ -14,8 +14,6 @@
#include "Math.hpp"
-#include "CPUID.hpp"
-
namespace sw
{
inline uint64_t FNV_1a(uint64_t hash, unsigned char data)
@@ -26,7 +24,7 @@
uint64_t FNV_1a(const unsigned char *data, int size)
{
int64_t hash = 0xCBF29CE484222325;
-
+
for(int i = 0; i < size; i++)
{
hash = FNV_1a(hash, data[i]);