gallium/auxiliary: add inc and dec alternative with return (v4)
authorChristoph Bumiller <christoph.bumiller@speed.at>
Mon, 17 Nov 2014 19:05:53 +0000 (20:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 18 Nov 2014 02:02:53 +0000 (02:02 +0000)
commitcb49132166faf4c8668b09a300bd9e3877327a33
treee2cf8b325a31f61526b98b7c2a3752d991b7c1b8
parente23d63cffd6103b8073c61f2740eb654c5c9b2c3
gallium/auxiliary: add inc and dec alternative with return (v4)

At this moment we use only zero or positive values.

v2: Implement it for also for Solaris, MSVC assembly
    and enable for other combinations.

v3: Replace MSVC assembly by assert + warning during compilation

v4: remove inc and dec with return for MSVC assembly

Acked-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: David Heidelberg <david@ixit.cz>
src/gallium/auxiliary/util/u_atomic.h