From 0d54286d3f11dda748de91d0a8a2977551066826 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Thu, 11 Jun 2015 14:43:10 -0400 Subject: Require __SSE2__ for i386 to use SSE2 --- util/integer_to_string.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util') diff --git a/util/integer_to_string.cc b/util/integer_to_string.cc index 32047291d..6b8766119 100644 --- a/util/integer_to_string.cc +++ b/util/integer_to_string.cc @@ -7,6 +7,7 @@ Local modifications: 4. Remove test hook 5. Non-x86 support from the branch_lut code 6. Rename functions +7. Require __SSE2__ on i386 Copyright (C) 2014 Milo Yip @@ -66,7 +67,7 @@ const char gDigitsLut[200] = { // SSE2 implementation according to http://0x80.pl/articles/sse-itoa.html // Modifications: (1) fix incorrect digits (2) accept all ranges (3) write to user provided buffer. -#if defined(i386) || defined(__amd64) || defined(_M_IX86) || defined(_M_X64) +#if defined(__amd64) || defined(_M_X64) || (defined(__SSE2__) && (defined(_M_IX86) || defined(i386))) #include -- cgit v1.2.3