Re: [Mesa3d-dev] [PATCH] gallium: Add simple atomic class api.

2009-03-16 Thread Thomas Hellstrom
Michał Król wrote: > On Mon, Mar 16, 2009 at 10:41 AM, Thomas Hellstrom > wrote: > >> tom fogal wrote: >> >>> thellst...@vmware.com writes: >>> [snip] >>> >>> +#if (defined(PIPE_CC_GCC) && defined(__i386__)) >>> ^ >>> >>> This is basi

Re: [Mesa3d-dev] [PATCH] gallium: Add simple atomic class api.

2009-03-16 Thread Michał Król
On Mon, Mar 16, 2009 at 10:41 AM, Thomas Hellstrom wrote: > tom fogal wrote: >> thellst...@vmware.com writes: >> [snip] >> >>> +#if (defined(PIPE_CC_GCC) && defined(__i386__)) >>> >> >>          ^ >> >> This is basically an #ifdef (__GNUC__), I'm guessing? >> >> > Yes, however it s

Re: [Mesa3d-dev] [PATCH] gallium: Add simple atomic class api.

2009-03-16 Thread Thomas Hellstrom
tom fogal wrote: > thellst...@vmware.com writes: > [snip] > >> +#if (defined(PIPE_CC_GCC) && defined(__i386__)) >> > > ^ > > This is basically an #ifdef (__GNUC__), I'm guessing? > > Yes, however it seems like the rest of the gallium code is using private define

Re: [Mesa3d-dev] [PATCH] gallium: Add simple atomic class api.

2009-03-13 Thread tom fogal
thellst...@vmware.com writes: [snip] > +#if (defined(PIPE_CC_GCC) && defined(__i386__)) ^ This is basically an #ifdef (__GNUC__), I'm guessing? > +struct pipe_atomic { > + int32_t count; > +}; [snip] > +static INLINE int32_t > +p_atomic_cmpxchg(struct pipe_atomic *v, i

[Mesa3d-dev] [PATCH] gallium: Add simple atomic class api.

2009-03-13 Thread thellstrom
From: Thomas Hellstrom Note that the fallback implementation should really not be used. See comments in src/gallium/include/pipe/p_atomic.h Signed-off-by: Thomas Hellstrom --- src/gallium/include/pipe/p_atomic.h | 147 +++ 1 files changed, 147 insertions(+), 0