atomic.h (f24219b4e90cf70ec4a211b17fbabc725a0ddf3c) | atomic.h (7847777a45f9f8bfc8617dbf107bde1ecb59caee) |
---|---|
1/* 2 * arch/arm/include/asm/atomic.h 3 * 4 * Copyright (C) 1996 Russell King. 5 * Copyright (C) 2002 Deep Blue Solutions Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 445 unchanged lines hidden (view full) --- 454#define atomic64_inc_return(v) atomic64_add_return(1LL, (v)) 455#define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0) 456#define atomic64_sub_and_test(a, v) (atomic64_sub_return((a), (v)) == 0) 457#define atomic64_dec(v) atomic64_sub(1LL, (v)) 458#define atomic64_dec_return(v) atomic64_sub_return(1LL, (v)) 459#define atomic64_dec_and_test(v) (atomic64_dec_return((v)) == 0) 460#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1LL, 0LL) 461 | 1/* 2 * arch/arm/include/asm/atomic.h 3 * 4 * Copyright (C) 1996 Russell King. 5 * Copyright (C) 2002 Deep Blue Solutions Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 445 unchanged lines hidden (view full) --- 454#define atomic64_inc_return(v) atomic64_add_return(1LL, (v)) 455#define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0) 456#define atomic64_sub_and_test(a, v) (atomic64_sub_return((a), (v)) == 0) 457#define atomic64_dec(v) atomic64_sub(1LL, (v)) 458#define atomic64_dec_return(v) atomic64_sub_return(1LL, (v)) 459#define atomic64_dec_and_test(v) (atomic64_dec_return((v)) == 0) 460#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1LL, 0LL) 461 |
462#else /* !CONFIG_GENERIC_ATOMIC64 */ 463#include <asm-generic/atomic64.h> | 462#endif /* !CONFIG_GENERIC_ATOMIC64 */ |
464#endif | 463#endif |
465#include <asm-generic/atomic-long.h> | |
466#endif | 464#endif |
467#endif | |