Skip to content

Commit

Permalink
Disable the use of SIMD code in transcode_algorithm.hpp.
Browse files Browse the repository at this point in the history
Fixes #212.
  • Loading branch information
tzlaine committed Jan 18, 2024
1 parent 0e62505 commit dd2959e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/boost/text/transcode_algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#include <boost/config.hpp>
#include <boost/predef/hardware/simd.h>

// Override BOOST_TEXT_USE_SIMD, disabling it. See
// https://github.com/tzlaine/text/issues/212.
#if defined(BOOST_TEXT_USE_SIMD)
#undef BOOST_TEXT_USE_SIMD
#endif
#define BOOST_TEXT_USE_SIMD 0

#if !defined(BOOST_TEXT_USE_SIMD) || BOOST_TEXT_USE_SIMD == 1
#if BOOST_HW_SIMD_X86_SSE2_VERSION <= BOOST_HW_SIMD_X86
Expand Down

0 comments on commit dd2959e

Please sign in to comment.