Remove aligned __constant datatypes from OpenCL kernel function declarations

pull/1134/head
jsteube 7 years ago
parent 6401c58568
commit 22be61b20d

@ -17,7 +17,7 @@
#include "inc_rp.cl"
#include "inc_simd.cl"
__constant u32a theMagicArray[64] =
__constant u32 theMagicArray[64] =
{
0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f,
0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194,
@ -29,7 +29,7 @@ __constant u32a theMagicArray[64] =
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
u32 GETSHIFTEDINT_CONST (__constant u32a *a, const int n)
u32 GETSHIFTEDINT_CONST (__constant u32 *a, const int n)
{
const int d = n / 4;
const int m = n & 3;

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a theMagicArray[64] =
__constant u32 theMagicArray[64] =
{
0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f,
0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194,
@ -27,7 +27,7 @@ __constant u32a theMagicArray[64] =
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
u32 GETSHIFTEDINT_CONST (__constant u32a *a, const int n)
u32 GETSHIFTEDINT_CONST (__constant u32 *a, const int n)
{
const int d = n / 4;
const int m = n & 3;

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a theMagicArray[64] =
__constant u32 theMagicArray[64] =
{
0x91ac5114, 0x9f675443, 0x24e73be0, 0x28747bc2, 0x863313eb, 0x5a4fcb5c, 0x080a7337, 0x0e5d1c2f,
0x338fe6e5, 0xf89baedd, 0x16f24b8d, 0x2ce1d4dc, 0xb0cbdf9d, 0xd4706d17, 0xf94d423f, 0x9b1b1194,
@ -27,7 +27,7 @@ __constant u32a theMagicArray[64] =
0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
};
u32 GETSHIFTEDINT_CONST (__constant u32a *a, const int n)
u32 GETSHIFTEDINT_CONST (__constant u32 *a, const int n)
{
const int d = n / 4;
const int m = n & 3;

@ -17,7 +17,7 @@
#include "inc_rp.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -84,7 +84,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -82,7 +82,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -82,7 +82,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

@ -17,7 +17,7 @@
#include "inc_rp.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -84,7 +84,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -82,7 +82,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

@ -15,7 +15,7 @@
#include "inc_common.cl"
#include "inc_simd.cl"
__constant u32a padding[8] =
__constant u32 padding[8] =
{
0x5e4ebf28,
0x418a754e,
@ -82,7 +82,7 @@ void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
}
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32a *in, u32 out[4])
u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{
#ifdef _unroll
#pragma unroll

Loading…
Cancel
Save