Subject: lib/14168: `long double' support in libc is less than optimal`
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 10/06/2001 12:13:27
>Number:         14168
>Category:       lib
>Synopsis:       `long double' support in libc is less than optimal`
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 05 19:14:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     matthew green
>Release:        <NetBSD-current source date>today
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
	
System: NetBSD madrugada.eterna.com.au 1.5X NetBSD 1.5X (_madrugada_) #100: Fri Sep 14 18:22:33 EST 2001 mrg@madrugada.eterna.com.au:/var/_madrugada_ alpha
Architecture: alpha
Machine: alpha
>Description:

there are at least two issues with long double support:

	- isinf() and isnan() work on double's and there is no counter part
	for long double.  these's don't work correctly for long double.

	- printf() (and scanf())'s support for long double is basically
	useless.  internally it simply casts the value to a double before
	processing it.  this causes any value that fits in a long double
	but not a double to fail.

>How-To-Repeat:

	write code that uses (needs) long double support.  see it fail.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: