+1
This commit is contained in:
1
decl.cpp
1
decl.cpp
@@ -535,6 +535,7 @@ Declarator::InitFromType(const Type *baseType, DeclSpecs *ds) {
|
||||
{
|
||||
// ds->storageClass = SC_EXTERN_C;
|
||||
ds->typeQualifiers |= TYPEQUAL_UNMASKED;
|
||||
// ds->typeQualifiers |= TYPEQUAL_INLINE;
|
||||
}
|
||||
|
||||
bool isExternC = ds && (ds->storageClass == SC_EXTERN_C);
|
||||
|
||||
@@ -40,16 +40,6 @@
|
||||
|
||||
typedef float<3> vec;
|
||||
|
||||
#ifdef __NVPTX__
|
||||
#warning "emitting DEVICE code"
|
||||
#define programCount warpSize()
|
||||
#define programIndex laneIndex()
|
||||
#define taskIndex blockIndex0()
|
||||
#define taskCount blockCount0()
|
||||
#else
|
||||
#warning "emitting HOST code"
|
||||
#endif
|
||||
|
||||
struct Isect {
|
||||
float t;
|
||||
vec p;
|
||||
|
||||
@@ -40,18 +40,6 @@ met:
|
||||
|
||||
typedef float<3> vec;
|
||||
|
||||
#ifdef __NVPTX__
|
||||
#warning "emitting DEVICE code"
|
||||
#define programCount warpSize()
|
||||
#define programIndex laneIndex()
|
||||
#define taskIndex0 blockIndex0()
|
||||
#define taskCount0 blockCount0()
|
||||
#define taskIndex1 blockIndex1()
|
||||
#define taskCount1 blockCount1()
|
||||
#else
|
||||
#warning "emitting HOST code"
|
||||
#endif
|
||||
|
||||
struct Isect {
|
||||
float t;
|
||||
vec p;
|
||||
|
||||
Reference in New Issue
Block a user