[Mesa-dev] [PATCH 0/7] util: Move u_atomic.h to src/util and modify API

Matt Turner mattst88 at gmail.com
Mon Nov 24 16:39:50 PST 2014


I've got some thread-safety fixes queued up after this and thought I'd
be a good Mesa citizen and pull some code into src/util.

I did some clean ups like replacing INLINE (MSVC knows about "inline"
these days, right?) and used stdbool.h instead of the "boolean" type.

I also removed the inline assembly implementations because they were
either dead code, or only allowed *ancient* gcc to build Mesa and
because I didn't want to update them for the next patch, which makes
the API consist of some macros that internally do the right operation
based on the type.

The last patch looks funky, but I think it's actually a reasonable
solution. I don't have MSVC or Sun Studio, so please give this a
test.
 


More information about the mesa-dev mailing list