|
|
|
@ -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;
|
|
|
|
|