[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: m68k OCaml porting issue



Hi Stéphane!

On 12/22/21 14:47, Stéphane Glondu wrote:
> Another simpler example, not involving unions:
> 
> -----8<-----
> #include <stdio.h>
> #include <math.h>
> #include <stdlib.h>
> 
> int main(int argc, char** argv) {
>   double d[2];
>   d[0] = NAN;
>   d[1] = -d[0];
>   printf("%F\n", d[1]);
> }
> -----8<-----
> 
> returns "-INF" instead of "-NAN".

It might be an emulation issue with QEMU which has some issues with FPU emulation.

I can test it on real hardware but not until after Christmas.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: