Remove "C" linkages (#781)

* Remove extern C linkages

* Update crc32 to cpp and remove extern C linkage
This commit is contained in:
Ankit Goyal
2020-05-20 18:46:19 +05:30
committed by GitHub
parent 223c43b7d9
commit 4fbcd96e7f
74 changed files with 140 additions and 440 deletions

View File

@@ -17,8 +17,6 @@
#include "harness/conversions.h"
#include "harness/typeWrappers.h"
extern "C" { extern cl_uint gRandomSeed; };
#define TEST_SIZE 512
const char *equivTestKernelPattern_double =

View File

@@ -17,8 +17,6 @@
#include "harness/conversions.h"
#include "harness/typeWrappers.h"
extern "C" { extern cl_uint gRandomSeed;};
#define TEST_SIZE 512
const char *equivTestKernelPattern_float =
@@ -63,7 +61,7 @@ const char *equivTestKernelPatternLessGreater_float3 =
"}\n";
typedef bool (*equivVerifyFn)( float inDataA, float inDataB );
extern "C" { extern int gInfNanSupport; };
extern int gInfNanSupport;
int IsFloatInfinity(float x)
{

View File

@@ -38,8 +38,6 @@ const char *anyAllTestKernelPatternVload =
#define TEST_SIZE 512
extern "C" {extern cl_uint gRandomSeed;};
typedef int (*anyAllVerifyFn)( ExplicitType vecType, unsigned int vecSize, void *inData );
int test_any_all_kernel(cl_context context, cl_command_queue queue,

View File

@@ -36,8 +36,6 @@ enum ShuffleMode
kBuiltInDualInputFnMode
};
extern "C" { extern cl_uint gRandomSeed;};
static const char *shuffleKernelPattern[3] = {
"__kernel void sample_test( __global %s%s *source, __global %s%s *dest )\n"
"{\n"