projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc3d24
)
math: Fix ilogb(double) return type
author
Aaron Watry
<awatry@gmail.com>
Wed, 24 Feb 2016 00:52:15 +0000
(
00:52
+0000)
committer
Aaron Watry
<awatry@gmail.com>
Wed, 24 Feb 2016 00:52:15 +0000
(
00:52
+0000)
Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 261714
libclc/generic/lib/math/ilogb.cl
patch
|
blob
|
history
diff --git
a/libclc/generic/lib/math/ilogb.cl
b/libclc/generic/lib/math/ilogb.cl
index
b783b7e
..
7ab7899
100644
(file)
--- a/
libclc/generic/lib/math/ilogb.cl
+++ b/
libclc/generic/lib/math/ilogb.cl
@@
-41,7
+41,7
@@
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, int, ilogb, float);
#ifdef cl_khr_fp64
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
-_CLC_OVERLOAD _CLC_DEF ilogb(double x) {
+_CLC_OVERLOAD _CLC_DEF i
nt i
logb(double x) {
ulong ux = as_ulong(x);
ulong ax = ux & ~SIGNBIT_DP64;
int r = (int) (ax >> EXPSHIFTBITS_DP64) - EXPBIAS_DP64;