sync code with last improvements from OpenBSD
This commit is contained in:
commit
88965415ff
26235 changed files with 29195616 additions and 0 deletions
6
dist/fontconfig/meson-cc-tests/intel-atomic-primitives-test.c
vendored
Normal file
6
dist/fontconfig/meson-cc-tests/intel-atomic-primitives-test.c
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
void memory_barrier (void) { __sync_synchronize (); }
|
||||
int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
|
||||
int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
|
||||
void mutex_unlock (int *m) { __sync_lock_release (m); }
|
||||
|
||||
int main(void) { return 0;}
|
Loading…
Add table
Add a link
Reference in a new issue