Mercurial > hg > nginx
annotate src/os/unix/ngx_sunpro_x86.il @ 1503:fa67e7914b70 stable-0.5
r1391, r1392, r1393 merge:
auth_http related changes:
*) stop configuration on error
*) allow "http://" in auth_http URL
*) test http_auth absence
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 22 Sep 2007 18:41:35 +0000 |
parents | b766d9c0a2be |
children | 7e02df612521 |
rev | line source |
---|---|
561 | 1 / |
2 / Copyright (C) Igor Sysoev | |
3 / | |
4 | |
5 / ngx_atomic_uint_t ngx_atomic_cmp_set(ngx_atomic_t *lock, | |
6 / ngx_atomic_uint_t old, ngx_atomic_uint_t set); | |
7 / | |
8 / the arguments are passed on the stack (%esp), 4(%esp), 8(%esp) | |
9 | |
10 .inline ngx_atomic_cmp_set,0 | |
11 movl (%esp), %ecx | |
12 movl 4(%esp), %eax | |
13 movl 8(%esp), %edx | |
14 lock | |
15 cmpxchgl %edx, (%ecx) | |
16 setz %al | |
17 movzbl %al, %eax | |
18 .end | |
19 | |
20 | |
21 / ngx_atomic_int_t ngx_atomic_fetch_add(ngx_atomic_t *value, | |
22 / ngx_atomic_int_t add); | |
23 / | |
24 / the arguments are passed on the stack (%esp), 4(%esp) | |
25 | |
26 .inline ngx_atomic_fetch_add,0 | |
27 movl (%esp), %ecx | |
28 movl 4(%esp), %eax | |
29 lock | |
30 xaddl %eax, (%ecx) | |
31 .end | |
1327
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
32 |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
33 |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
34 / ngx_cpu_pause() |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
35 |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
36 .inline ngx_cpu_pause,0 |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
37 pause |
b766d9c0a2be
r1306, r1307, r1308, r1309, r1310, r1311, r1322, r1325 merge:
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
38 .end |