Skip to content

Commit

Permalink
_mm_set1_epi64x is avalible only on x64 platform, but we can use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Jul 9, 2014
1 parent f2e3734 commit 3fb243f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdivide.h
Expand Up @@ -255,7 +255,7 @@ static inline int64_t libdivide__mullhi_s64(int64_t x, int64_t y) {
#if LIBDIVIDE_USE_SSE2

static inline __m128i libdivide__u64_to_m128(uint64_t x) {
#if LIBDIVIDE_VC
#if LIBDIVIDE_VC && ! _WIN64
//64 bit windows doesn't seem to have an implementation of any of these load intrinsics, and 32 bit Visual C++ crashes
_declspec(align(16)) uint64_t temp[2] = {x, x};
return _mm_load_si128((const __m128i*)temp);
Expand Down

0 comments on commit 3fb243f

Please sign in to comment.