[go: nahoru, domu]

Skip to content

Commit

Permalink
use softintrin on arm64ec
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards committed Oct 29, 2021
1 parent 4d6cb08 commit 060c348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/rapidjson/internal/biginteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && defined(_M_AMD64)
#include <intrin.h> // for _umul128
#if !defined(_ARM64EC_)
#pragma intrinsic(_umul128)
#else
#pragma comment(lib,"softintrin")
#endif
#endif

RAPIDJSON_NAMESPACE_BEGIN
Expand Down
4 changes: 4 additions & 0 deletions include/rapidjson/internal/diyfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@

#if defined(_MSC_VER) && defined(_M_AMD64) && !defined(__INTEL_COMPILER)
#include <intrin.h>
#if !defined(_ARM64EC_)
#pragma intrinsic(_umul128)
#else
#pragma comment(lib,"softintrin")
#endif
#endif

RAPIDJSON_NAMESPACE_BEGIN
Expand Down

0 comments on commit 060c348

Please sign in to comment.