comparison src/os/unix/ngx_atomic.h @ 428:5e73d0ea4dab

nginx-0.0.11-2004-09-16-20:10:13 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 16 Sep 2004 16:10:13 +0000
parents bd39260a1383
children 9a97dcdd2421
comparison
equal deleted inserted replaced
427:0d08eabe5c7b 428:5e73d0ea4dab
106 106
107 static ngx_inline uint32_t ngx_atomic_cmp_set(ngx_atomic_t *lock, 107 static ngx_inline uint32_t ngx_atomic_cmp_set(ngx_atomic_t *lock,
108 ngx_atomic_t old, 108 ngx_atomic_t old,
109 ngx_atomic_t set) 109 ngx_atomic_t set)
110 { 110 {
111 uint32_t res = (u_int32_t) set; 111 uint32_t res = (uint32_t) set;
112 112
113 __asm__ volatile ( 113 __asm__ volatile (
114 114
115 "casa [%1]ASI_P, %2, %0" 115 "casa [%1]ASI_P, %2, %0"
116 116