Skip to content

Commit

Permalink
libcoprthr: added some defines for address qualifier syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
browndeer committed Mar 22, 2012
1 parent 887e3b6 commit 123e25e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libcoprthr/__libcoprthr.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ static __inline void barrier( int flags )
#define __global
#define __local
#define __constant
#define __private

#define global __global
#define local __local
#define constant __constant
#define private __private



/*** image access qualifiers [6.6] ***/
Expand Down
7 changes: 7 additions & 0 deletions src/libcoprthr/__libcoprthr.h-no-template
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ static __inline void barrier( int flags )
#define __global
#define __local
#define __constant
#define __private

#define global __global
#define local __local
#define constant __constant
#define private __private


/*** image access qualifiers [6.6] ***/
Expand All @@ -175,6 +181,7 @@ static __inline void barrier( int flags )
/*** function qualifiers [6.7] ***/

#define __kernel
#define kernel


/*** fix restrict qualifier for GCC ***/
Expand Down

0 comments on commit 123e25e

Please sign in to comment.