Skip to content

Commit e109eed

Browse files
committed
* try to fix error on x86 platform step3.
1 parent 3ae6d3c commit e109eed

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/fast_float/ascii_number.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ read8_to_u64(UC const *chars) {
7070

7171
#ifdef FASTFLOAT_SSE2
7272

73-
fastfloat_really_inline uint64_t simd_read8_to_u64(__m128i const data) {
73+
fastfloat_really_inline uint64_t simd_read8_to_u64(__m128i const &data) {
7474
FASTFLOAT_SIMD_DISABLE_WARNINGS
7575
// _mm_packus_epi16 is SSE2+, converts 8×u16 → 8×u8
7676
__m128i const packed = _mm_packus_epi16(data, data);
@@ -94,7 +94,7 @@ fastfloat_really_inline uint64_t simd_read8_to_u64(char16_t const *chars) {
9494

9595
#elif defined(FASTFLOAT_NEON)
9696

97-
fastfloat_really_inline uint64_t simd_read8_to_u64(uint16x8_t const data) {
97+
fastfloat_really_inline uint64_t simd_read8_to_u64(uint16x8_t const &data) {
9898
FASTFLOAT_SIMD_DISABLE_WARNINGS
9999
uint8x8_t utf8_packed = vmovn_u16(data);
100100
return vget_lane_u64(vreinterpret_u64_u8(utf8_packed), 0);

include/fast_float/float_common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ using parse_options = parse_options_t<char>;
179179
#if defined(__SSE2__) || (defined(FASTFLOAT_VISUAL_STUDIO) && \
180180
(defined(_M_AMD64) || defined(_M_X64) || \
181181
(defined(_M_IX86_FP) && _M_IX86_FP == 2)))
182-
// try to fix error on x86 platform: disable SSE2 code
183-
// #define FASTFLOAT_SSE2 1
182+
#define FASTFLOAT_SSE2 1
184183
#endif
185184

186185
#if defined(__aarch64__) || defined(_M_ARM64)

0 commit comments

Comments
 (0)