Mercurial > hg > nginx-quic
comparison src/core/ngx_atomic.h @ 298:4a3f18406832
nginx-0.0.3-2004-03-30-10:27:36 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 30 Mar 2004 06:27:36 +0000 |
parents | ee394e997c77 |
children | 46b7eeb8a116 |
comparison
equal
deleted
inserted
replaced
297:ee394e997c77 | 298:4a3f18406832 |
---|---|
62 NGX_SMP_LOCK | 62 NGX_SMP_LOCK |
63 " cmpxchgl %3, %1; " | 63 " cmpxchgl %3, %1; " |
64 " setz %%al; " | 64 " setz %%al; " |
65 " movzbl %%al, %0; " | 65 " movzbl %%al, %0; " |
66 | 66 |
67 : "+a" (res) : "m" (*lock), "a" (old), "q" (set)); | 67 : "=a" (res) : "m" (*lock), "a" (old), "q" (set)); |
68 | 68 |
69 return res; | 69 return res; |
70 } | 70 } |
71 | 71 |
72 #else | 72 #else |