OLD | NEW |
| (Empty) |
1 Index: mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86.s | |
2 =================================================================== | |
3 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86.s,v | |
4 retrieving revision 1.2 | |
5 diff -p -u -8 -r1.2 os_Darwin_x86.s | |
6 --- mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86.s 11 Dec 2006 09:45:30 -00
00 1.2 | |
7 +++ mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86.s 27 May 2010 18:38:39 -00
00 | |
8 @@ -44,16 +44,17 @@ | |
9 # | |
10 # PRInt32 __PR_Darwin_x86_AtomicIncrement(PRInt32 *val); | |
11 # | |
12 # Atomically increment the integer pointed to by 'val' and return | |
13 # the result of the increment. | |
14 # | |
15 .text | |
16 .globl __PR_Darwin_x86_AtomicIncrement | |
17 + .private_extern __PR_Darwin_x86_AtomicIncrement | |
18 .align 4 | |
19 __PR_Darwin_x86_AtomicIncrement: | |
20 movl 4(%esp), %ecx | |
21 movl $1, %eax | |
22 lock | |
23 xaddl %eax, (%ecx) | |
24 incl %eax | |
25 ret | |
26 @@ -61,16 +62,17 @@ __PR_Darwin_x86_AtomicIncrement: | |
27 # | |
28 # PRInt32 __PR_Darwin_x86_AtomicDecrement(PRInt32 *val); | |
29 # | |
30 # Atomically decrement the integer pointed to by 'val' and return | |
31 # the result of the decrement. | |
32 # | |
33 .text | |
34 .globl __PR_Darwin_x86_AtomicDecrement | |
35 + .private_extern __PR_Darwin_x86_AtomicDecrement | |
36 .align 4 | |
37 __PR_Darwin_x86_AtomicDecrement: | |
38 movl 4(%esp), %ecx | |
39 movl $-1, %eax | |
40 lock | |
41 xaddl %eax, (%ecx) | |
42 decl %eax | |
43 ret | |
44 @@ -78,31 +80,33 @@ __PR_Darwin_x86_AtomicDecrement: | |
45 # | |
46 # PRInt32 __PR_Darwin_x86_AtomicSet(PRInt32 *val, PRInt32 newval); | |
47 # | |
48 # Atomically set the integer pointed to by 'val' to the new | |
49 # value 'newval' and return the old value. | |
50 # | |
51 .text | |
52 .globl __PR_Darwin_x86_AtomicSet | |
53 + .private_extern __PR_Darwin_x86_AtomicSet | |
54 .align 4 | |
55 __PR_Darwin_x86_AtomicSet: | |
56 movl 4(%esp), %ecx | |
57 movl 8(%esp), %eax | |
58 xchgl %eax, (%ecx) | |
59 ret | |
60 | |
61 # | |
62 # PRInt32 __PR_Darwin_x86_AtomicAdd(PRInt32 *ptr, PRInt32 val); | |
63 # | |
64 # Atomically add 'val' to the integer pointed to by 'ptr' | |
65 # and return the result of the addition. | |
66 # | |
67 .text | |
68 .globl __PR_Darwin_x86_AtomicAdd | |
69 + .private_extern __PR_Darwin_x86_AtomicAdd | |
70 .align 4 | |
71 __PR_Darwin_x86_AtomicAdd: | |
72 movl 4(%esp), %ecx | |
73 movl 8(%esp), %eax | |
74 movl %eax, %edx | |
75 lock | |
76 xaddl %eax, (%ecx) | |
77 addl %edx, %eax | |
78 Index: mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86_64.s | |
79 =================================================================== | |
80 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86_64.s,v | |
81 retrieving revision 1.1 | |
82 diff -p -u -8 -r1.1 os_Darwin_x86_64.s | |
83 --- mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86_64.s 27 Jul 2008 16:04:23 -00
00 1.1 | |
84 +++ mozilla/nsprpub/pr/src/md/unix/os_Darwin_x86_64.s 27 May 2010 18:38:39 -00
00 | |
85 @@ -38,58 +38,62 @@ | |
86 | |
87 # PRInt32 __PR_Darwin_x86_64_AtomicIncrement(PRInt32 *val) | |
88 # | |
89 # Atomically increment the integer pointed to by 'val' and return | |
90 # the result of the increment. | |
91 # | |
92 .text | |
93 .globl __PR_Darwin_x86_64_AtomicIncrement | |
94 + .private_extern __PR_Darwin_x86_64_AtomicIncrement | |
95 .align 4 | |
96 __PR_Darwin_x86_64_AtomicIncrement: | |
97 movl $1, %eax | |
98 lock | |
99 xaddl %eax, (%rdi) | |
100 incl %eax | |
101 ret | |
102 | |
103 # PRInt32 __PR_Darwin_x86_64_AtomicDecrement(PRInt32 *val) | |
104 # | |
105 # Atomically decrement the integer pointed to by 'val' and return | |
106 # the result of the decrement. | |
107 # | |
108 .text | |
109 .globl __PR_Darwin_x86_64_AtomicDecrement | |
110 + .private_extern __PR_Darwin_x86_64_AtomicDecrement | |
111 .align 4 | |
112 __PR_Darwin_x86_64_AtomicDecrement: | |
113 movl $-1, %eax | |
114 lock | |
115 xaddl %eax, (%rdi) | |
116 decl %eax | |
117 ret | |
118 | |
119 # PRInt32 __PR_Darwin_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval) | |
120 # | |
121 # Atomically set the integer pointed to by 'val' to the new | |
122 # value 'newval' and return the old value. | |
123 # | |
124 .text | |
125 .globl __PR_Darwin_x86_64_AtomicSet | |
126 + .private_extern __PR_Darwin_x86_64_AtomicSet | |
127 .align 4 | |
128 __PR_Darwin_x86_64_AtomicSet: | |
129 movl %esi, %eax | |
130 xchgl %eax, (%rdi) | |
131 ret | |
132 | |
133 # PRInt32 __PR_Darwin_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val) | |
134 # | |
135 # Atomically add 'val' to the integer pointed to by 'ptr' | |
136 # and return the result of the addition. | |
137 # | |
138 .text | |
139 .globl __PR_Darwin_x86_64_AtomicAdd | |
140 + .private_extern __PR_Darwin_x86_64_AtomicAdd | |
141 .align 4 | |
142 __PR_Darwin_x86_64_AtomicAdd: | |
143 movl %esi, %eax | |
144 lock | |
145 xaddl %eax, (%rdi) | |
146 addl %esi, %eax | |
147 ret | |
OLD | NEW |