Replace __kernel, __constant, __global and __local qualifiers with macro for better control
This commit is contained in:
@@ -25,7 +25,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 m04010_m04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -39,7 +39,7 @@ __kernel void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -416,15 +416,15 @@ __kernel void m04010_m04 (KERN_ATTR_BASIC ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_m16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -438,7 +438,7 @@ __kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
* bin2asc table
|
||||
*/
|
||||
|
||||
__local u32 l_bin2asc[256];
|
||||
LOCAL_AS u32 l_bin2asc[256];
|
||||
|
||||
for (u32 i = lid; i < 256; i += lsz)
|
||||
{
|
||||
@@ -830,10 +830,10 @@ __kernel void m04010_s04 (KERN_ATTR_BASIC ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04010_s16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04010_s16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user