Re: incorrectly rounded square root

Paul Zimmermann <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
       Dear Marco,

> current Cygwin produces for both i686 and X86_64
> 
>   $ gcc -DNEWLIB -fno-builtin test_sqrt.c  -lm
> 
>   $ ./a.exe
> RNDN: 0x1.ff83fp+63
> RNDZ: 0x1.ff83fp+63
> RNDU: 0x1.ff83fp+63
> RNDD: 0x1.ff83fp+63

make sure you are using the Newlib fenv.h (or print the values of FE_TONEAREST,
FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD). Cf my previous mail.

Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.