cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

inc_and_test (340B)


      1cat <<EOF
      2/**
      3 * arch_${atomic}_inc_and_test - increment and test
      4 * @v: pointer of type ${atomic}_t
      5 *
      6 * Atomically increments @v by 1
      7 * and returns true if the result is zero, or false for all
      8 * other cases.
      9 */
     10static __always_inline bool
     11arch_${atomic}_inc_and_test(${atomic}_t *v)
     12{
     13	return arch_${atomic}_inc_return(v) == 0;
     14}
     15EOF