newlib-4.5.0 yearly snapshot created

Paul Zimmermann Paul.Zimmermann@inria.fr
Thu Jan 2 09:48:00 GMT 2025


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 <jjohnstn@redhat.com>
> 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.


More information about the Newlib mailing list