Replace __kernel, __constant, __global and __local qualifiers with macro for better control
This commit is contained in:
@@ -26,7 +26,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 m04400_m04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_m04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -40,7 +40,7 @@ __kernel void m04400_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)
|
||||
{
|
||||
@@ -386,15 +386,15 @@ __kernel void m04400_m04 (KERN_ATTR_BASIC ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04400_m08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_m08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04400_m16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_m16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04400_s04 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_s04 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
/**
|
||||
* modifier
|
||||
@@ -408,7 +408,7 @@ __kernel void m04400_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)
|
||||
{
|
||||
@@ -769,10 +769,10 @@ __kernel void m04400_s04 (KERN_ATTR_BASIC ())
|
||||
}
|
||||
}
|
||||
|
||||
__kernel void m04400_s08 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_s08 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
__kernel void m04400_s16 (KERN_ATTR_BASIC ())
|
||||
KERNEL_FQ void m04400_s16 (KERN_ATTR_BASIC ())
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user