NetBSD-Bugs archive

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

lib/58245: hypotl(3) is broken on ld128 ports



>Number:         58245
>Category:       lib
>Synopsis:       hypotl(3) is broken on ld128 ports
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 11 19:05:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetBSD Hypothenation
>Environment:
>Description:
hypot(0x1p-16385L, 0) should return 0x1p-16385L but it returns 0 instead.
>How-To-Repeat:
#include <math.h>
#include <stdio.h>

volatile long double a = 0x1p-16385L;

int
main(void)
{
	printf("%La\n", hypotl(a, 0));
	fflush(stdout);
	return ferror(stdout);
}

>Fix:
Yes, please!



Home | Main Index | Thread Index | Old Index