Skip to content
Snippets Groups Projects
Unverified Commit de5da087 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #1844 from psychocrypt/topic-removeUnusedFunctions

AMD: remove unused functions
parents dbf33ecd fce822e5
No related branches found
No related tags found
No related merge requests found
...@@ -611,27 +611,6 @@ const char* const attributeNames[] = { ...@@ -611,27 +611,6 @@ const char* const attributeNames[] = {
#define NELEMS(x) (sizeof(x) / sizeof((x)[0])) #define NELEMS(x) (sizeof(x) / sizeof((x)[0]))
void PrintDeviceInfo(cl_device_id device)
{
char queryBuffer[1024];
int queryInt;
cl_int clError;
clError = clGetDeviceInfo(device, CL_DEVICE_NAME, sizeof(queryBuffer), &queryBuffer, NULL);
printf(" CL_DEVICE_NAME: %s\n", queryBuffer);
queryBuffer[0] = '\0';
clError = clGetDeviceInfo(device, CL_DEVICE_VENDOR, sizeof(queryBuffer), &queryBuffer, NULL);
printf(" CL_DEVICE_VENDOR: %s\n", queryBuffer);
queryBuffer[0] = '\0';
clError = clGetDeviceInfo(device, CL_DRIVER_VERSION, sizeof(queryBuffer), &queryBuffer, NULL);
printf(" CL_DRIVER_VERSION: %s\n", queryBuffer);
queryBuffer[0] = '\0';
clError = clGetDeviceInfo(device, CL_DEVICE_VERSION, sizeof(queryBuffer), &queryBuffer, NULL);
printf(" CL_DEVICE_VERSION: %s\n", queryBuffer);
queryBuffer[0] = '\0';
clError = clGetDeviceInfo(device, CL_DEVICE_MAX_COMPUTE_UNITS, sizeof(int), &queryInt, NULL);
printf(" CL_DEVICE_MAX_COMPUTE_UNITS: %d\n", queryInt);
}
uint32_t getNumPlatforms() uint32_t getNumPlatforms()
{ {
cl_uint num_platforms = 0; cl_uint num_platforms = 0;
......
...@@ -81,34 +81,6 @@ inline uint2 fast_div_v2(const __local uint *RCP, ulong a, uint b) ...@@ -81,34 +81,6 @@ inline uint2 fast_div_v2(const __local uint *RCP, ulong a, uint b)
); );
} }
inline void fast_div_full_q(const __local uint *RCP, ulong a, uint b, ulong *q, uint *r)
{
const uint rcp = get_reciprocal((const __local uchar *)RCP, b);
const ulong k = mul_hi(as_uint2(a).s0, rcp) + ((ulong)(as_uint2(a).s1) * rcp) + a;
((uint*)q)[0] = as_uint2(k).s1;
((uint*)q)[1] = (k < a) ? 1 : 0;
long tmp = a - (*q) * b;
const bool overshoot = (tmp < 0);
const bool undershoot = (tmp >= b);
if (overshoot)
{
--(*q);
tmp += b;
}
if (undershoot)
{
++(*q);
tmp -= b;
}
*r = tmp;
}
inline uint fast_sqrt_v2(const ulong n1) inline uint fast_sqrt_v2(const ulong n1)
{ {
float x = as_float((as_uint2(n1).s1 >> 9) + ((64U + 127U) << 23)); float x = as_float((as_uint2(n1).s1 >> 9) + ((64U + 127U) << 23));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment