OpenCL kernel change

This makes it work on my AMD.
This commit is contained in:
mailchuck 2015-11-26 02:37:52 +01:00 committed by Peter Surda
parent e7e245fe25
commit 9335f74c61

View File

@ -24,9 +24,8 @@
/// Warning: This version of SWAP64(n) is slow and avoid bugs on AMD GPUs(7970) /// Warning: This version of SWAP64(n) is slow and avoid bugs on AMD GPUs(7970)
#define SWAP64(n) as_ulong(as_uchar8(n).s76543210) // #define SWAP64(n) as_ulong(as_uchar8(n).s76543210)
/*
#define SWAP64(n) \ #define SWAP64(n) \
(((n) << 56) \ (((n) << 56) \
| (((n) & 0xff00) << 40) \ | (((n) & 0xff00) << 40) \
@ -36,7 +35,6 @@
| (((n) >> 24) & 0xff0000) \ | (((n) >> 24) & 0xff0000) \
| (((n) >> 40) & 0xff00) \ | (((n) >> 40) & 0xff00) \
| ((n) >> 56)) | ((n) >> 56))
*/