This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa-20020619-branch] current status report on i386-*-freebsd4*
On Wed, Feb 18, 2004 at 12:34:36AM -0600, Loren James Rittle wrote:
> FreeBSD, the C99 round(x) should probably expand to:
> #include <ieeefp.h>
> fp_rnd_t __t = fpsetround(FP_RN);
> double __r = rint(x);
> return __r;
No, round has specific requirements for .5 to round away from zero,
as opposed to IEEE round to even.
> Does libgfortran support a way for port
> maintainers to hook in those per-port support routines (like
> libmath/libstub and config/os in libstdc++-v3)?
Not yet. It wouldn't be hard to do, I guess. We'll probably want
to copy the appropriate files from glibc, since that'll be sure to
get things right. Plus it uses the same license as libgfortran.