]> Git Repo - linux.git/blob - scripts/atomic/fallbacks/dec_and_test
Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux...
[linux.git] / scripts / atomic / fallbacks / dec_and_test
1 cat <<EOF
2 /**
3  * arch_${atomic}_dec_and_test - decrement and test
4  * @v: pointer of type ${atomic}_t
5  *
6  * Atomically decrements @v by 1 and
7  * returns true if the result is 0, or false for all other
8  * cases.
9  */
10 static __always_inline bool
11 arch_${atomic}_dec_and_test(${atomic}_t *v)
12 {
13         return arch_${atomic}_dec_return(v) == 0;
14 }
15 EOF
This page took 0.036578 seconds and 4 git commands to generate.