Mercurial > hg > nginx
comparison src/core/ngx_atomic.h @ 299:46b7eeb8a116
nginx-0.0.3-2004-03-30-19:59:50 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 30 Mar 2004 15:59:50 +0000 |
parents | 4a3f18406832 |
children | 502b03d9d2a3 |
comparison
equal
deleted
inserted
replaced
298:4a3f18406832 | 299:46b7eeb8a116 |
---|---|
26 __asm__ volatile ( | 26 __asm__ volatile ( |
27 | 27 |
28 NGX_SMP_LOCK | 28 NGX_SMP_LOCK |
29 " xaddl %0, %1; " | 29 " xaddl %0, %1; " |
30 | 30 |
31 : "=q" (old) : "m" (*value)); | 31 : "+q" (old) : "m" (*value)); |
32 | 32 |
33 return old; | 33 return old; |
34 } | 34 } |
35 | 35 |
36 | 36 |
43 __asm__ volatile ( | 43 __asm__ volatile ( |
44 | 44 |
45 NGX_SMP_LOCK | 45 NGX_SMP_LOCK |
46 " xaddl %0, %1; " | 46 " xaddl %0, %1; " |
47 | 47 |
48 : "=q" (old) : "m" (*value)); | 48 : "+q" (old) : "m" (*value)); |
49 | 49 |
50 return old; | 50 return old; |
51 } | 51 } |
52 | 52 |
53 | 53 |