Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/amd64/include/atomic.h 150182 2005-09-15 19:31:22Z jhb $
---
> * $FreeBSD: head/sys/amd64/include/atomic.h 150627 2005-09-27 17:39:11Z jhb $
75a76
> u_int atomic_fetchadd_int(volatile u_int *p, u_int v);
156a158,176
> /*
> * Atomically add the value of v to the integer pointed to by p and return
> * the previous value of *p.
> */
> static __inline u_int
> atomic_fetchadd_int(volatile u_int *p, u_int v)
> {
>
> __asm __volatile (
> " " __XSTRING(MPLOCKED) " "
> " xaddl %0, %1 ; "
> "# atomic_fetchadd_int"
> : "+r" (v), /* 0 (result) */
> "=m" (*p) /* 1 */
> : "m" (*p)); /* 2 */
>
> return (v);
> }
>
377a398
> #define atomic_fetchadd_32 atomic_fetchadd_int