HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/modules/5.15.0-89-generic/build/scripts/atomic/fallbacks/sub_and_test
cat <<EOF
/**
 * arch_${atomic}_sub_and_test - subtract value from variable and test result
 * @i: integer value to subtract
 * @v: pointer of type ${atomic}_t
 *
 * Atomically subtracts @i from @v and returns
 * true if the result is zero, or false for all
 * other cases.
 */
static __always_inline bool
arch_${atomic}_sub_and_test(${int} i, ${atomic}_t *v)
{
	return arch_${atomic}_sub_return(i, v) == 0;
}
EOF