On Mon, Feb 05, 2018 at 06:05:50PM +0100, Tobias Hansen wrote:
> On 02/05/2018 06:03 PM, Bill Allombert wrote:
> > On Mon, Feb 05, 2018 at 05:35:12PM +0100, Tobias Hansen wrote:
> >> Source: pari
> >> Version: 2.9.4-1
> >> Severity: normal
> >>
> >> Hi there,
> >>
> >> one of the tests of cypari2 failed on the mips architectures (at least
> >> mips and mips64el) and the problem is in pari itself (this was on
> >> mips):
> 
> Cool. Yes it is, on all other architectures the test ran fine:
> 
> https://buildd.debian.org/status/package.php?p=cypari2&suite=experimental

Some ieee754 operations give unexpected results:

The attached program give on mipsel:
a=inf ai=2147483647  b=-inf bi=2147483647
while
a=inf ai=-2147483648 b=-inf bi=-2147483648
is expected (and seen on other plateforms).

Cheers,
-- 
Bill. <[email protected]>

Imagine a large red swirl here. 
#include <stdio.h>
int
main(void)
{
  double a = 1./0.;
  long ai = (long) a;
  double b = -a;
  long bi = (long) b;
  printf("a=%g ai=%ld b=%g bi=%ld\n",a,ai,b,bi);
}

Reply via email to