Re: newlib-4.5.0 yearly snapshot created

Paul Zimmermann <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
thank you for the update Jeff!

I see that this bug reported almost 4 years ago is still in newlib-4.5.0:

https://sourceware.org/pipermail/newlib/2021/018230.html

#include <stdio.h>
#include <math.h>

int main()
{
  long double x = 0xf.ffffffffffffffep+8188l;
  long double y = (long double) 0;
  long double z = hypotl (x, y);
  printf ("x=%La y=%La z=%La\n", x, y, z);
  x = 0xf.fffffffffffffffp+8188l;
  z = hypotl (x, y);
  printf ("x=%La y=%La z=%La\n", x, y, z);
  x = 0x1p+8192l;
  z = hypotl (x, y);
  printf ("x=%La y=%La z=%La\n", x, y, z);
  return 0;
}

$ ./a.out                           
x=0xf.ffffffffffffffep+8188 y=0x0p+0 z=0xf.ffffffffffffffep+8188
x=0xf.fffffffffffffffp+8188 y=0x0p+0 z=-0xcp+16380
x=0x8p+8189 y=0x0p+0 z=inf

Happy New 1^3 + 2^3 + ... + 9^3 !

Paul

> From: Jeff Johnston <[email protected]>
> Date: Tue, 31 Dec 2024 20:42:22 -0500
> 
> 
> [1:text/plain Show]
> 
> 
> [2:text/html Hide Save:noname (503B)]
> 
> Hi everyone,
> 
> I have created the yearly snapshot for newlib and uploaded it to the ftp
> site.
> 
> Happy New Year,
> 
> -- Jeff J.
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.