From owner-cvs-all Wed Dec 23 06:31:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA23907 for cvs-all-outgoing; Wed, 23 Dec 1998 06:31:25 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA23898; Wed, 23 Dec 1998 06:31:17 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id BAA28606; Thu, 24 Dec 1998 01:31:10 +1100 Date: Thu, 24 Dec 1998 01:31:10 +1100 From: Bruce Evans Message-Id: <199812231431.BAA28606@godzilla.zeta.org.au> To: bde@zeta.org.au, dfr@nlsystems.com Subject: Re: cvs commit: src/sys/alpha/alpha machdep.c sys_machdep.c src/sys/alpha/include alpha_cpu.h fpu.h ieeefp.h sysarch.h src/lib/libc/alpha SYS.h src/lib/libc/alpha/gen Makefile.inc fpgetmask.c fpgetround.c fpgetsticky.c fpsetmask.c fpsetround.c ... Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, dfr@FreeBSD.ORG Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >> Applications should use the documented interface, which is >> >> #include >> >> We seem to have obtained this interface from Sun. AltaVista finds many >> hits on in SunOS and Solaris man pages, e.g., >> >> http://www.sees.bangor.ac.uk/~bill/man/intro3.html >> >> It goes with , which we don't have (we had it in >> FreeBSD.1.x, but I moved it to because it was >> i386-specific :-). >> >> This interface should be superseded by the C9x interface. > >I was following the NetBSD naming. If there is a standard interface to >use this then then we should follow it and maybe deprecate >ieeefp.h/floatingpoint.h or It is more screwed up than I thought. The Sun contents of the Sun is nothing like ours. Precision masks bits seem to be in Sun's , but they have different names, and IIRC the function names are different too. Our function names are found in HPUX and Intel (Paragon only?) man pages. HPUX apparently declares them in and Paragon apparently declares them in . Paragon seems to have the same interface as NetBSD. Better yet, all of the "i386" interfaces are incompatible with the NetBSD/ Paragon ones, because the typedefs are spelled properly (with a trailing _t) only for the i386 interfaces. Even rev.1.1 in FreeBSD-1.x has the _t's. must be better than this even if no one has implemented it. It has been implemented mainly by Apple according to AltaVista. Here is part of : void fesetexceptflag(const fexcept_t *flagp, int excepts); int fesetround(int round); void fesetenv(const fenv_t *envp); Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message