Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2015-06-11 21:43:10 +0300
committerKenneth Heafield <github@kheafield.com>2015-06-11 21:43:10 +0300
commit0d54286d3f11dda748de91d0a8a2977551066826 (patch)
tree8e8f2cbfe42aef735023b03cae8b8f3b1424e092 /util
parent47c793ca4647a6868fabc041cbd63e5114994e3f (diff)
Require __SSE2__ for i386 to use SSE2
Diffstat (limited to 'util')
-rw-r--r--util/integer_to_string.cc3
1 files changed, 2 insertions, 1 deletions
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 <emmintrin.h>