27 lines · 657 B · C
RawDownload
/* ------------------------------------------------------------------------- *//* winex.c : extra stuff */ #if __aarch64__#include <stdlib.h>/* replaces environ from arm64-msvcrt.dll which does not exist */char **_environ;wchar_t **_wenviron;/* those do exist but have problems */int __argc;char **__argv;wchar_t **__wargv;#endif #if __aarch64__ || __x86_64__/* MSVC x64 intrinsic */void __faststorefence(void){#if __aarch64__    /* ARM64: Data Memory Barrier (Inner Shareable) */    __asm__("dmb ish");#elif __x86_64__    /* x86-64: lock prefix to flush store buffer */    __asm__("lock; orl $0,(%%rsp)" ::: "memory");#endif}#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t