Skip to content

Commit 241665d

Browse files
Make xsimd code compatible with #define small char found in some MS headers
Fix #1037
1 parent e624857 commit 241665d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/xsimd/arch/generic/xsimd_generic_details.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ namespace xsimd
204204
XSIMD_INLINE batch<uint32_t, A> fast_cast(batch<float, A> const& v, batch<uint32_t, A> const&, requires_arch<generic>) noexcept
205205
{
206206
auto is_large = v >= batch<float, A>(1u << 31);
207-
auto small = bitwise_cast<float>(batch_cast<int32_t>(v));
208-
auto large = bitwise_cast<float>(
207+
auto small_v = bitwise_cast<float>(batch_cast<int32_t>(v));
208+
auto large_v = bitwise_cast<float>(
209209
batch_cast<int32_t>(v - batch<float, A>(1u << 31))
210210
^ batch<int32_t, A>(1u << 31));
211-
return bitwise_cast<uint32_t>(select(is_large, large, small));
211+
return bitwise_cast<uint32_t>(select(is_large, large_v, small_v));
212212
}
213213
}
214214

0 commit comments

Comments
 (0)