Replace __kernel, __constant, __global and __local qualifiers with macro for better control
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#define uint_to_hex_lower8(i) (u32x) (l_bin2asc[(i).s0], l_bin2asc[(i).s1], l_bin2asc[(i).s2], l_bin2asc[(i).s3], l_bin2asc[(i).s4], l_bin2asc[(i).s5], l_bin2asc[(i).s6], l_bin2asc[(i).s7], l_bin2asc[(i).s8], l_bin2asc[(i).s9], l_bin2asc[(i).sa], l_bin2asc[(i).sb], l_bin2asc[(i).sc], l_bin2asc[(i).sd], l_bin2asc[(i).se], l_bin2asc[(i).sf])
|
||||
#endif
|
||||
|
||||
__kernel void m04520_m04 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_m04 (KERN_ATTR_RULES ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -41,7 +41,7 @@ __kernel void m04520_m04 (KERN_ATTR_RULES ())
|
||||
* shared
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -587,15 +587,15 @@ __kernel void m04520_m04 (KERN_ATTR_RULES ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04520_m08 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_m08 (KERN_ATTR_RULES ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04520_m16 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_m16 (KERN_ATTR_RULES ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04520_s04 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_s04 (KERN_ATTR_RULES ())
|
||||
{
|
||||
/**
|
||||
* base
|
||||
@@ -609,7 +609,7 @@ __kernel void m04520_s04 (KERN_ATTR_RULES ())
|
||||
* shared
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -1167,10 +1167,10 @@ __kernel void m04520_s04 (KERN_ATTR_RULES ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04520_s08 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_s08 (KERN_ATTR_RULES ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04520_s16 (KERN_ATTR_RULES ())
|
||||
KERNEL_FQ void m04520_s16 (KERN_ATTR_RULES ())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user