File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ typedef unsigned int USItype;
3737typedef long long DWtype ;
3838typedef unsigned long long UDWtype ;
3939
40- #if defined(_WIN64 ) && defined(_MSC_VER )
41- #include <intrin.h>
42- #endif
43-
4440struct DWstruct {
4541 Wtype low , high ;
4642};
@@ -652,15 +648,11 @@ long long __fixxfdi (long double a1)
652648}
653649#endif /* !ARM */
654650
655- #if defined _WIN64
656- /* MSVC x64 intrinsic */
651+ #if defined(_WIN64 ) && !defined(_MSC_VER )
652+ /* Fallback helper for GNU-like Windows compilers.
653+ MSVC/clang-cl provide __faststorefence as an intrinsic/builtin. */
657654void __faststorefence (void )
658655{
659- #if defined(_MSC_VER )
660- __declspec(align (16 )) static volatile long _minicc_sfence_word ;
661- _InterlockedOr ((volatile long * )& _minicc_sfence_word , 0 );
662- #else
663656 __asm__("lock; orl $0,(%rsp)" );
664- #endif
665657}
666658#endif
You can’t perform that action at this time.
0 commit comments