Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-16 Thread Emil Velikov
On 06/03/15 18:26, Brian Paul wrote: > On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov > wrote: > > Used for aligned_alloc and other C11 functions missing from the header. > > Signed-off-by: Emil Velikov > > --- >

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-12 Thread Jose Fonseca
On 12/03/15 00:07, Emil Velikov wrote: On 9 March 2015 at 11:54, Jose Fonseca wrote: On 07/03/15 19:38, Emil Velikov wrote: On 07/03/15 07:23, Jose Fonseca wrote: ... we still didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa tree gave me pause. The only way I can thi

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-11 Thread Emil Velikov
On 9 March 2015 at 11:54, Jose Fonseca wrote: > On 07/03/15 19:38, Emil Velikov wrote: >> >> On 07/03/15 07:23, Jose Fonseca wrote: >> ... >>> >>> we still >>> didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa >>> tree gave me pause. >>> >> The only way I can think about resol

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-09 Thread Jose Fonseca
On 07/03/15 19:38, Emil Velikov wrote: On 07/03/15 07:23, Jose Fonseca wrote: ... we still didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa tree gave me pause. The only way I can think about resolving this, is to use call_once() to initialize the mutex, Yes, I'm afraid

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-07 Thread Brian Paul
On Sat, Mar 7, 2015 at 1:13 PM, Brian Paul wrote: > On Sat, Mar 7, 2015 at 12:38 PM, Emil Velikov > wrote: > > >> FYI I'm contemplating on about adding a final wrapper - c99_string.h. It >> should nuke nearly all of the remaining compiler abstraction that we >> have around - mapi, egl, gallium,

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-07 Thread Brian Paul
On Sat, Mar 7, 2015 at 12:38 PM, Emil Velikov wrote: > > FYI I'm contemplating on about adding a final wrapper - c99_string.h. It > should nuke nearly all of the remaining compiler abstraction that we > have around - mapi, egl, gallium, mesa, glsl... > Yeah, I was looking at doing something like

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-07 Thread Emil Velikov
On 07/03/15 07:23, Jose Fonseca wrote: ... > we still > didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa > tree gave me pause. > The only way I can think about resolving this, is to use call_once() to initialize the mutex, but I'm not 100% sure if T2 will sync until T1 call_o

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-06 Thread Jose Fonseca
On 07/03/15 07:23, Jose Fonseca wrote: On 06/03/15 18:26, Brian Paul wrote: On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov mailto:emil.l.veli...@gmail.com>> wrote: Used for aligned_alloc and other C11 functions missing from the header. Signed-off-by: Emil Velikov mailto:emil.l.veli...@gm

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-06 Thread Jose Fonseca
On 06/03/15 18:26, Brian Paul wrote: On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov mailto:emil.l.veli...@gmail.com>> wrote: Used for aligned_alloc and other C11 functions missing from the header. Signed-off-by: Emil Velikov mailto:emil.l.veli...@gmail.com>> --- include/c11_stdl

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-06 Thread Brian Paul
On Fri, Mar 6, 2015 at 11:26 AM, Brian Paul wrote: > On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov > wrote: > >> Used for aligned_alloc and other C11 functions missing from the header. >> >> Signed-off-by: Emil Velikov >> --- >> include/c11_stdlib.h | 118 ++ > > > I

Re: [Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-06 Thread Brian Paul
On Fri, Mar 6, 2015 at 9:32 AM, Emil Velikov wrote: > Used for aligned_alloc and other C11 functions missing from the header. > > Signed-off-by: Emil Velikov > --- > include/c11_stdlib.h | 118 ++ I wonder if this should be include/c11/stdlib.h instead. I also wond

[Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

2015-03-06 Thread Emil Velikov
Used for aligned_alloc and other C11 functions missing from the header. Signed-off-by: Emil Velikov --- include/c11_stdlib.h | 118 +++ 1 file changed, 118 insertions(+) create mode 100644 include/c11_stdlib.h diff --git a/include/c11_stdlib.h b/