HEX
Server: LiteSpeed
System: Linux vearitale.com 5.14.0-570.32.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 6 11:30:41 EDT 2025 x86_64
User: yunab9059 (2007)
PHP: 8.3.21
Disabled: NONE
Upload Files
File: //usr/src/kernels/5.14.0-570.32.1.el9_6.x86_64/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