mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
Require __SSE2__ for i386 to use SSE2
This commit is contained in:
parent
47c793ca46
commit
0d54286d3f
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user