Skip to content

Commit

Permalink
t1ha: fix MSVC ARM64 intrinsic.
Browse files Browse the repository at this point in the history
  • Loading branch information
erthink committed Feb 7, 2018
1 parent 676d09d commit 7a8878c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/t1ha_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,12 @@
#define rot32(v, s) _rotr(v, s)
#define __inline __forceinline

#if defined(_M_ARM64) || defined(_M_X64) || defined(_M_IA64)
#if defined(_M_X64) || defined(_M_IA64)
#pragma intrinsic(_umul128)
#define mul_64x64_128(a, b, ph) _umul128(a, b, ph)
#endif

#if defined(_M_ARM64) || defined(_M_X64) || defined(_M_IA64)
#pragma intrinsic(__umulh)
#define mul_64x64_high(a, b) __umulh(a, b)
#endif
Expand Down

0 comments on commit 7a8878c

Please sign in to comment.