mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 22:01:29 +00:00
Previously, Graphene supported Glibc version 2.19 only. This commit adds support for Glibc v2.23 (default in Ubuntu 16.04) and Glibc v2.27 (default in Ubuntu 18.04). The exact version can be chosen by specifying GLIBC_VERSION during Graphene build. The default version to be built is v2.27. Note that for the best GDB experience it is advised to build Graphene with the same Glibc version as installed on the host OS.
25 lines
715 B
Diff
25 lines
715 B
Diff
diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c
|
|
index 663fa39..bd758b5 100644
|
|
--- a/sysdeps/ieee754/dbl-64/e_pow.c
|
|
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
|
|
@@ -466,15 +466,15 @@ checkint (double x)
|
|
return (n & 1) ? -1 : 1; /* odd or even */
|
|
if (k > 20)
|
|
{
|
|
- if (n << (k - 20))
|
|
+ if (n << (k - 20) != 0)
|
|
return 0; /* if not integer */
|
|
- return (n << (k - 21)) ? -1 : 1;
|
|
+ return (n << (k - 21) != 0) ? -1 : 1;
|
|
}
|
|
if (n)
|
|
return 0; /*if not integer */
|
|
if (k == 20)
|
|
return (m & 1) ? -1 : 1;
|
|
- if (m << (k + 12))
|
|
+ if (m << (k + 12) != 0)
|
|
return 0;
|
|
- return (m << (k + 11)) ? -1 : 1;
|
|
+ return (m << (k + 11) != 0) ? -1 : 1;
|
|
}
|