File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -161,8 +161,8 @@ FASTFLOAT_SIMD_DISABLE_WARNINGS
161
161
162
162
// (x - '0') <= 9
163
163
// http://0x80.pl/articles/simd-parsing-int-sequences.html
164
- const __m128i t0 = _mm_sub_epi16 (data, _mm_set1_epi16 (80 ));
165
- const __m128i t1 = _mm_cmpgt_epi16 (t0, _mm_set1_epi16 (-119 ));
164
+ const __m128i t0 = _mm_add_epi16 (data, _mm_set1_epi16 (32720 ));
165
+ const __m128i t1 = _mm_cmpgt_epi16 (t0, _mm_set1_epi16 (-32759 ));
166
166
167
167
if (_mm_movemask_epi8 (t1) == 0 ) {
168
168
i = i * 100000000 + parse_eight_digits_unrolled (simd_read8_to_u64 (data));
Original file line number Diff line number Diff line change @@ -170,14 +170,6 @@ fastfloat_really_inline constexpr bool cpp20_and_in_constexpr() {
170
170
#endif
171
171
}
172
172
173
- fastfloat_really_inline constexpr bool has_simd () {
174
- #if FASTFLOAT_HAS_SIMD
175
- return true ;
176
- #else
177
- return false ;
178
- #endif
179
- }
180
-
181
173
// Compares two ASCII strings in a case insensitive manner.
182
174
template <typename UC>
183
175
inline FASTFLOAT_CONSTEXPR14 bool
You can’t perform that action at this time.
0 commit comments