Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1427391

Re: [PATCH 01/12] locking/atomic: Introduce inc/dec calls for FETCH-OP flavors

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 01/12] locking/atomic: Introduce inc/dec calls for FETCH-OP flavors
Date 2016-06-21 09:30 +0200
Message-ID <rMoie-2I5-35@gated-at.bofh.it> (permalink)
References <rMdG9-4no-3@gated-at.bofh.it> <rMdGa-4no-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jun 20, 2016 at 01:05:53PM -0700, Davidlohr Bueso wrote:
> +#ifndef atomic_fetch_inc
> +#define atomic_fetch_inc(v)  (atomic_fetch_add(1, v))
> +#endif

> +#ifndef atomic_fetch_dec
> +#define atomic_fetch_dec(v)  (atomic_fetch_sub(1, v))
> +#endif

You're missing these for atomic64

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 01/12] locking/atomic: Introduce inc/dec calls for FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-20 22:10 +0200
  Re: [PATCH 01/12] locking/atomic: Introduce inc/dec calls for  FETCH-OP flavors Peter Zijlstra <peterz@infradead.org> - 2016-06-21 09:30 +0200
  [PATCH v2 01/12] locking/atomic: Introduce inc/dec calls for  FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-21 15:40 +0200
    Re: [PATCH v2 01/12] locking/atomic: Introduce inc/dec calls for  FETCH-OP flavors Davidlohr Bueso <dave@stgolabs.net> - 2016-06-21 19:20 +0200
      Re: [PATCH v2 01/12] locking/atomic: Introduce inc/dec calls for  FETCH-OP flavors Peter Zijlstra <peterz@infradead.org> - 2016-06-23 11:20 +0200

csiph-web