Rev 1787 | Rev 2082 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1888 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ia64 |
29 | /** @addtogroup ia64 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __ia64_ATOMIC_H__ |
35 | #ifndef KERN_ia64_ATOMIC_H_ |
36 | #define __ia64_ATOMIC_H__ |
36 | #define KERN_ia64_ATOMIC_H_ |
37 | 37 | ||
38 | /** Atomic addition. |
38 | /** Atomic addition. |
39 | * |
39 | * |
40 | * @param val Atomic value. |
40 | * @param val Atomic value. |
41 | * @param imm Value to add. |
41 | * @param imm Value to add. |
Line 60... | Line 60... | ||
60 | static inline long atomic_postinc(atomic_t *val) { return atomic_add(val, 1); } |
60 | static inline long atomic_postinc(atomic_t *val) { return atomic_add(val, 1); } |
61 | static inline long atomic_postdec(atomic_t *val) { return atomic_add(val, -1); } |
61 | static inline long atomic_postdec(atomic_t *val) { return atomic_add(val, -1); } |
62 | 62 | ||
63 | #endif |
63 | #endif |
64 | 64 | ||
65 | /** @} |
65 | /** @} |
66 | */ |
66 | */ |
67 | - |