[Bug fortran/31202] Incorrect rounding generated for NINT
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Aug 5 17:08:00 GMT 2007
On Sun, Aug 05, 2007 at 06:28:46PM +0200, Krister Walfridsson wrote:
>
>
> On Sun, 5 Aug 2007, FX Coudert wrote:
>
> >>NetBSD does not have lroundl (and not roundl, so lroundl is not added by
> >>intrinsics/c99_functions.c) with the result that linking with libgfortran
> >>fails with "undefined reference to `lroundl'".
> >
> >I have also introduced a roundl() fallback, but it depends on ceill()
> >being available. Now, what rounding long double functions does i386-netbsd
> >have? Does it have nextafterl?
>
> NetBSD does not have any long double functions at all... (It seems to be
> farther behind the standards than I thought. My goal for the coming
> months was to modernize the toolchain and libraries where needed. Seems
> to be a bigger job than I expected... *sigh*)
>
You can grab some of the long double functions from FreeBSD.
For example,
/usr/share/man/man3/ceill.3.gz
/usr/src/lib/msun/i387/s_ceill.S
/usr/src/lib/msun/src/s_ceill.c
--
Steve
More information about the Fortran
mailing list