ADDED Support for __ffs() and __ffsll() having signed input -sandeep
Ta zmiana jest zawarta w:
%! (template.HTML=
streamhsa)złożyło 2016-02-02 15:05:46 +05:30
1 rodzic
2b02fe082f
złożenie
23904df99b
Plik 1 zmieniony
+10
@@ -325,6 +325,16 @@ __device__ inline unsigned int __ffsll(unsigned long long int input)
|
||||
return hc::__lastbit_u32_u64( input)+1;
|
||||
}
|
||||
|
||||
__device__ inline unsigned int __ffs(int input)
|
||||
{
|
||||
return hc::__lastbit_u32_s32( input)+1;
|
||||
}
|
||||
|
||||
__device__ inline unsigned int __ffsll(long long int input)
|
||||
{
|
||||
return hc::__lastbit_u32_s64( input)+1;
|
||||
}
|
||||
|
||||
__device__ inline unsigned int __brev( unsigned int input)
|
||||
{
|
||||
return hc::__bitrev_b32( input);
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika