mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix atomic operations on sparc64 built by SunPro C
This commit is contained in:
parent
359561d6cc
commit
dc566e4bd6
@ -24,7 +24,7 @@ static ngx_inline ngx_atomic_uint_t
|
||||
ngx_atomic_cmp_set(ngx_atomic_t *lock, ngx_atomic_uint_t old,
|
||||
ngx_atomic_uint_t set)
|
||||
{
|
||||
NGX_CASA(set, old, lock);
|
||||
set = NGX_CASA(set, old, lock);
|
||||
|
||||
return (set == old);
|
||||
}
|
||||
@ -41,7 +41,7 @@ ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add)
|
||||
|
||||
res = old + add;
|
||||
|
||||
NGX_CASA(res, old, value);
|
||||
res = NGX_CASA(res, old, value);
|
||||
|
||||
if (res == old) {
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user