Added __faststorefence() MSVC intrinsic (required e.g. by sqlite3).

This commit is contained in:
Tyge Løvset 2021-07-04 13:32:55 +02:00
parent e3a0eb5089
commit c4a2c52411

View File

@ -631,3 +631,11 @@ long long __fixxfdi (long double a1)
const float __mzerosf = -0.0; const float __mzerosf = -0.0;
const double __mzerodf = -0.0; const double __mzerodf = -0.0;
#endif #endif
#if defined _WIN64
/* MSVC x64 intrinsic */
void __faststorefence(void)
{
__asm__("lock; orl $0,(%rsp)");
}
#endif