Added support for __mul24 and __umul24
This commit is contained in:
committed by
Maneesh Gupta
parent
eb1fce0d77
commit
adc763f440
Regular → Executable
+3
@@ -430,6 +430,9 @@ __device__ unsigned int atomicInc(unsigned int* address,
|
||||
__device__ unsigned int atomicDec(unsigned int* address,
|
||||
unsigned int val);
|
||||
|
||||
//__mul24 __umul24
|
||||
__device__ int __mul24(int arg1, int arg2);
|
||||
__device__ unsigned int __umul24(unsigned int arg1, unsigned int arg2);
|
||||
|
||||
// integer intrinsic function __poc __clz __ffs __brev
|
||||
__device__ unsigned int __popc( unsigned int input);
|
||||
|
||||
Regular → Executable
+11
@@ -1672,6 +1672,17 @@ __device__ unsigned int atomicDec(unsigned int* address,
|
||||
return hc::__atomic_wrapdec(address,val);
|
||||
}
|
||||
|
||||
//__mul24 __umul24
|
||||
__device__ int __mul24(int arg1,
|
||||
int arg2)
|
||||
{
|
||||
return hc::__mul24(arg1, arg2);
|
||||
}
|
||||
__device__ unsigned int __umul24(unsigned int arg1,
|
||||
unsigned int arg2)
|
||||
{
|
||||
return hc::__mul24(arg1, arg2);
|
||||
}
|
||||
|
||||
__device__ unsigned int test__popc(unsigned int input)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user