added device math functions

[ROCm/hip commit: 26985b746b]
This commit is contained in:
Aditya Atluri
2016-03-31 12:29:19 -05:00
parent c750820adf
commit 70c1ac9285
3 changed files with 671 additions and 17 deletions
@@ -40,6 +40,8 @@ __device__ void integer_intrinsics()
//__mulhi((int)1, (int)2);
__popc((unsigned int)4);
__popcll((unsigned long long)4);
int a = min((int)4, (int)5);
int b = max((int)4, (int)5);
//__rhadd((int)1, (int)2);
//__sad((int)1, (int)2, 0);
//__uhadd((unsigned int)1, (unsigned int)3);