diff options
author | 2020-08-10 21:14:10 +0000 | |
---|---|---|
committer | 2020-08-10 21:14:10 +0000 | |
commit | f2119caf99b8ed409235597050ceebdc9102f562 (patch) | |
tree | cfb90cfe994f47cfaf95506823ca0dac2d08b04d /lib/libcompiler_rt/atomic_flag_test_and_set.c | |
parent | Un-hook and re-hook libcompiler_rt. (diff) | |
download | wireguard-openbsd-f2119caf99b8ed409235597050ceebdc9102f562.tar.xz wireguard-openbsd-f2119caf99b8ed409235597050ceebdc9102f562.zip |
Tedu compiler-rt 8.0.1.
Diffstat (limited to 'lib/libcompiler_rt/atomic_flag_test_and_set.c')
-rw-r--r-- | lib/libcompiler_rt/atomic_flag_test_and_set.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/libcompiler_rt/atomic_flag_test_and_set.c b/lib/libcompiler_rt/atomic_flag_test_and_set.c deleted file mode 100644 index e8811d39ef2..00000000000 --- a/lib/libcompiler_rt/atomic_flag_test_and_set.c +++ /dev/null @@ -1,27 +0,0 @@ -/*===-- atomic_flag_test_and_set.c ------------------------------------------=== - * - * The LLVM Compiler Infrastructure - * - * This file is dual licensed under the MIT and the University of Illinois Open - * Source Licenses. See LICENSE.TXT for details. - * - *===------------------------------------------------------------------------=== - * - * This file implements atomic_flag_test_and_set from C11's stdatomic.h. - * - *===------------------------------------------------------------------------=== - */ - -#ifndef __has_include -#define __has_include(inc) 0 -#endif - -#if __has_include(<stdatomic.h>) - -#include <stdatomic.h> -#undef atomic_flag_test_and_set -_Bool atomic_flag_test_and_set(volatile atomic_flag *object) { - return __c11_atomic_exchange(&(object)->_Value, 1, __ATOMIC_SEQ_CST); -} - -#endif |