We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31e4ddf commit e42a46dCopy full SHA for e42a46d
src/ansi-c/library/gcc.c
@@ -1,24 +1,36 @@
1
/* FUNCTION: __builtin_ia32_sfence */
2
3
+#if defined(__i386__) || defined(__x86_64__)
4
+
5
void __builtin_ia32_sfence(void)
6
{
7
__asm("sfence");
8
}
9
10
+#endif
11
12
/* FUNCTION: __builtin_ia32_lfence */
13
14
15
16
void __builtin_ia32_lfence(void)
17
18
__asm("lfence");
19
20
21
22
23
/* FUNCTION: __builtin_ia32_mfence */
24
25
26
27
void __builtin_ia32_mfence(void)
28
29
__asm("mfence");
30
31
32
33
34
/* FUNCTION: __sync_synchronize */
35
36
void __sync_synchronize(void)
0 commit comments