NetBSD-Bugs archive

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

Re: lib/48767: nearbyint() and friends missing on macppc (others?)



The following reply was made to PR lib/48767; it has been noted by GNATS.

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: lib/48767: nearbyint() and friends missing on macppc (others?)
Date: Tue, 29 Apr 2014 16:53:14 -0500 (CDT)

 On Mon, 28 Apr 2014, Joerg Sonnenberger wrote:
 
 >  Add s_nearbyint.c or so to the correct line in the maze of
 >  architecture ifs?
 
 Apparently, it's more involved than that.  While the implementation is
 essentially a wrapper arount "rint()", the use of "f{g,s}etenv()" entails
 incuding "fenv.h" (and presumedly a corresponding architecture-specific
 "fenv.c" file) which is not (yet) implemented for powerpc (among others).
 
 For my immediate needs w.r.t building "x11/gtk3" on macppc, I replaced
 their static function with a macro that simply defined "nearbyint" as
 "rint".  It built.  I have not yet tried running the applications which
 depended on gtk3.
 
 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645
 


Home | Main Index | Thread Index | Old Index