mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Use C++ headers instead of C headers (#1179)
Remove some unnecessary includes. Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
const double twoToMinus1022 = MAKE_HEX_DOUBLE(0x1p-1022, 1, -1022);
|
const double twoToMinus1022 = MAKE_HEX_DOUBLE(0x1p-1022, 1, -1022);
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
const float twoToMinus126 = MAKE_HEX_FLOAT(0x1p-126f, 1, -126);
|
const float twoToMinus126 = MAKE_HEX_FLOAT(0x1p-126f, 1, -126);
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize,
|
static int BuildKernelDouble(const char *name, int vectorSize,
|
||||||
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
||||||
cl_kernel *k, cl_program *p, bool relaxedMode)
|
cl_kernel *k, cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, const char *operator_symbol,
|
static int BuildKernelDouble(const char *name, const char *operator_symbol,
|
||||||
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, const char *operator_symbol,
|
static int BuildKernel(const char *name, const char *operator_symbol,
|
||||||
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
int vectorSize, cl_uint kernel_count, cl_kernel *k,
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize,
|
static int BuildKernelDouble(const char *name, int vectorSize,
|
||||||
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
||||||
cl_kernel *k, cl_program *p, bool relaxedMode)
|
cl_kernel *k, cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize,
|
static int BuildKernelDouble(const char *name, int vectorSize,
|
||||||
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
cl_uint kernel_count, cl_kernel *k, cl_program *p,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
|
||||||
cl_kernel *k, cl_program *p, bool relaxedMode)
|
cl_kernel *k, cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <ctime>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
#include "harness/errorHelpers.h"
|
#include "harness/errorHelpers.h"
|
||||||
#include "harness/kernelHelpers.h"
|
#include "harness/kernelHelpers.h"
|
||||||
|
|||||||
@@ -14,12 +14,13 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "harness/compat.h"
|
|
||||||
#include "reference_math.h"
|
#include "reference_math.h"
|
||||||
#include <limits.h>
|
#include "harness/compat.h"
|
||||||
|
|
||||||
|
#include <climits>
|
||||||
|
|
||||||
#if !defined(_WIN32)
|
#if !defined(_WIN32)
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#define CORRECTLY_ROUNDED 0
|
#define CORRECTLY_ROUNDED 0
|
||||||
#define FLUSHED 1
|
#define FLUSHED 1
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#define CORRECTLY_ROUNDED 0
|
#define CORRECTLY_ROUNDED 0
|
||||||
#define FLUSHED 1
|
#define FLUSHED 1
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <climits>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernelDouble(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "test_functions.h"
|
#include "test_functions.h"
|
||||||
#include "utility.h"
|
#include "utility.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
|
|
||||||
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
||||||
cl_program *p, bool relaxedMode)
|
cl_program *p, bool relaxedMode)
|
||||||
|
|||||||
@@ -17,13 +17,6 @@
|
|||||||
#define UTILITY_H
|
#define UTILITY_H
|
||||||
|
|
||||||
#include "harness/compat.h"
|
#include "harness/compat.h"
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <OpenCL/opencl.h>
|
|
||||||
#else
|
|
||||||
#include <CL/opencl.h>
|
|
||||||
#endif
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "harness/rounding_mode.h"
|
#include "harness/rounding_mode.h"
|
||||||
#include "harness/fpcontrol.h"
|
#include "harness/fpcontrol.h"
|
||||||
#include "harness/testHarness.h"
|
#include "harness/testHarness.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user