switch (value) {
case GBE_GET_ARG_INFO_ADDRSPACE:
- return (void*)((ulong)info->addrSpace);
+ return (void*)((unsigned long)info->addrSpace);
case GBE_GET_ARG_INFO_TYPE:
return (void *)(info->typeName.c_str());
case GBE_GET_ARG_INFO_ACCESS:
formatStr += '({0} {1} *)param{2} + {3:2d}'.format(ptype[2], ptype[0], n, j)
else:
if (self.functionName == 'select' and n == 2):
- formatStr += '({0})(param{1}.s{2:x} & (({0})1 << (sizeof({0})*8 - 1)))'.format(ptype[0], n, j)
+ formatStr += '({0})(param{1}.s{2:X} & (({0})1 << (sizeof({0})*8 - 1)))'.format(ptype[0], n, j)
else:
- formatStr += 'param{0}.s{1:x}'.format(n, j)
+ formatStr += 'param{0}.s{1:X}'.format(n, j)
formatStr += ')'
if (param_value_size_ret)
*param_value_size_ret = sizeof(cl_kernel_arg_address_qualifier);
if (!param_value) return CL_SUCCESS;
- if ((ulong)ret_info == 0) {
+ if ((cl_ulong)ret_info == 0) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_PRIVATE;
- } else if ((ulong)ret_info == 1 || (ulong)ret_info == 4) {
+ } else if ((cl_ulong)ret_info == 1 || (cl_ulong)ret_info == 4) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_GLOBAL;
- } else if ((ulong)ret_info == 2) {
+ } else if ((cl_ulong)ret_info == 2) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_CONSTANT;
- } else if ((ulong)ret_info == 3) {
+ } else if ((cl_ulong)ret_info == 3) {
*(cl_kernel_arg_address_qualifier *)param_value = CL_KERNEL_ARG_ADDRESS_LOCAL;
} else {
/* If no address qualifier is specified, the default address qualifier