From 6707ba90729c615ffa5bf5ea81b8d32c3d8bd6e4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 30 Mar 2004 15:59:50 +0000 Subject: nginx-0.0.3-2004-03-30-19:59:50 import --- src/core/ngx_atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/ngx_atomic.h b/src/core/ngx_atomic.h index 6270d8a51..31bf94c45 100644 --- a/src/core/ngx_atomic.h +++ b/src/core/ngx_atomic.h @@ -28,7 +28,7 @@ static ngx_inline uint32_t ngx_atomic_inc(ngx_atomic_t *value) NGX_SMP_LOCK " xaddl %0, %1; " - : "=q" (old) : "m" (*value)); + : "+q" (old) : "m" (*value)); return old; } @@ -45,7 +45,7 @@ static ngx_inline uint32_t ngx_atomic_dec(ngx_atomic_t *value) NGX_SMP_LOCK " xaddl %0, %1; " - : "=q" (old) : "m" (*value)); + : "+q" (old) : "m" (*value)); return old; } -- cgit