]> git.pld-linux.org Git - packages/opensips.git/blob - x32.patch
- updated to 2.1.1
[packages/opensips.git] / x32.patch
1 --- opensips-2.1.0/atomic.h.orig        2015-04-22 10:20:03.000000000 +0200
2 +++ opensips-2.1.0/atomic.h     2015-12-31 15:23:47.575835666 +0100
3 @@ -142,7 +142,11 @@
4  static __inline__ void atomic_add(unsigned long i, atomic_t *v)
5  {
6         __asm__ __volatile__(
7 +#if defined(__ILP32__)
8 +               LOCK "add %1,%0"
9 +#else
10                 LOCK "addq %1,%0"
11 +#endif
12                 :"=m" (v->counter)
13                 :"er" (i), "m" (v->counter));
14  }
15 @@ -157,7 +161,11 @@
16  static __inline__ void atomic_sub(unsigned long i, atomic_t *v)
17  {
18         __asm__ __volatile__(
19 +#if defined(__ILP32__)
20 +               LOCK "sub %1,%0"
21 +#else
22                 LOCK "subq %1,%0"
23 +#endif
24                 :"=m" (v->counter)
25                 :"er" (i), "m" (v->counter));
26  }
27 @@ -171,7 +179,11 @@
28  static __inline__ void atomic_inc(atomic_t *v)
29  {
30         __asm__ __volatile__(
31 +#if defined(__ILP32__)
32 +               LOCK "inc %0"
33 +#else
34                 LOCK "incq %0"
35 +#endif
36                 :"=m" (v->counter)
37                 :"m" (v->counter));
38  }
39 @@ -185,7 +197,11 @@
40  static __inline__ void atomic_dec(atomic_t *v)
41  {
42         __asm__ __volatile__(
43 +#if defined(__ILP32__)
44 +               LOCK "dec %0"
45 +#else
46                 LOCK "decq %0"
47 +#endif
48                 :"=m" (v->counter)
49                 :"m" (v->counter));
50  }
This page took 0.075944 seconds and 4 git commands to generate.