Added
Link Here
|
0 |
- |
1 |
--- deps/openssl/openssl/crypto/threads_pthread.c.orig 2021-10-27 15:57:20 UTC |
|
|
2 |
+++ deps/openssl/openssl/crypto/threads_pthread.c |
3 |
@@ -188,7 +188,7 @@ int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPT |
4 |
|
5 |
int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) |
6 |
{ |
7 |
-# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) |
8 |
+# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(__i386__) |
9 |
if (__atomic_is_lock_free(sizeof(*val), val)) { |
10 |
*ret = __atomic_add_fetch(val, amount, __ATOMIC_ACQ_REL); |
11 |
return 1; |
12 |
@@ -215,7 +215,7 @@ int CRYPTO_atomic_add(int *val, int amount, int *ret, |
13 |
int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, |
14 |
CRYPTO_RWLOCK *lock) |
15 |
{ |
16 |
-# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) |
17 |
+# if defined(__GNUC__) && defined(__ATOMIC_ACQ_REL) && !defined(__i386__) |
18 |
if (__atomic_is_lock_free(sizeof(*val), val)) { |
19 |
*ret = __atomic_or_fetch(val, op, __ATOMIC_ACQ_REL); |
20 |
return 1; |
21 |
@@ -240,7 +240,7 @@ int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint6 |
22 |
|
23 |
int CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) |
24 |
{ |
25 |
-# if defined(__GNUC__) && defined(__ATOMIC_ACQUIRE) |
26 |
+# if defined(__GNUC__) && defined(__ATOMIC_ACQUIRE) && !defined(__i386__) |
27 |
if (__atomic_is_lock_free(sizeof(*val), val)) { |
28 |
__atomic_load(val, ret, __ATOMIC_ACQUIRE); |
29 |
return 1; |