Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54809
b: refs/heads/master
c: cc38682
h: refs/heads/master
i:
  54807: 3441435
v: v3
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed May 8, 2007
1 parent d9cee4d commit 690be38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ba34e197a45c1639aa56aea0399e97f827abb35
refs/heads/master: cc38682f356f95ca0e409679b76db46af6036460
11 changes: 9 additions & 2 deletions trunk/include/asm-i386/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static __inline__ void atomic_add(int i, atomic_t *v)
}

/**
* atomic_sub - subtract the atomic variable
* atomic_sub - subtract integer from atomic variable
* @i: integer value to subtract
* @v: pointer of type atomic_t
*
Expand Down Expand Up @@ -171,7 +171,7 @@ static __inline__ int atomic_add_negative(int i, atomic_t *v)
}

/**
* atomic_add_return - add and return
* atomic_add_return - add integer and return
* @v: pointer of type atomic_t
* @i: integer value to add
*
Expand Down Expand Up @@ -203,6 +203,13 @@ static __inline__ int atomic_add_return(int i, atomic_t *v)
#endif
}

/**
* atomic_sub_return - subtract integer and return
* @v: pointer of type atomic_t
* @i: integer value to subtract
*
* Atomically subtracts @i from @v and returns @v - @i
*/
static __inline__ int atomic_sub_return(int i, atomic_t *v)
{
return atomic_add_return(-i,v);
Expand Down

0 comments on commit 690be38

Please sign in to comment.