Fix comparison in sqrtl for IBM long double 128.
This commit is contained in:
parent
8ca52c6e3b
commit
da93d21475
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-10 Luis Machado <luisgpm@br.ibm.com>
|
||||||
|
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
|
||||||
|
signed comparison.
|
||||||
|
|
||||||
2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
|
2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #12205]
|
[BZ #12205]
|
||||||
|
|
|
@ -73,9 +73,9 @@ long double __ieee754_sqrtl(long double x)
|
||||||
m = ((a.i[2] >> 20) & 0x7ff) - 54;
|
m = ((a.i[2] >> 20) & 0x7ff) - 54;
|
||||||
}
|
}
|
||||||
m += n;
|
m += n;
|
||||||
if (m > 0)
|
if ((int) m > 0)
|
||||||
a.i[2] = (a.i[2] & 0x800fffff) | (m << 20);
|
a.i[2] = (a.i[2] & 0x800fffff) | (m << 20);
|
||||||
else if (m <= -54) {
|
else if ((int) m <= -54) {
|
||||||
a.i[2] &= 0x80000000;
|
a.i[2] &= 0x80000000;
|
||||||
a.i[3] = 0;
|
a.i[3] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue