mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
use "r" instead of "q"
This commit is contained in:
parent
feb42254ba
commit
2ffaa986e2
@ -68,7 +68,7 @@ ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add)
|
||||
NGX_SMP_LOCK
|
||||
" xaddq %0, %1; "
|
||||
|
||||
: "+q" (add) : "m" (*value) : "cc", "memory");
|
||||
: "+r" (add) : "m" (*value) : "cc", "memory");
|
||||
|
||||
return add;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user