From owner-freebsd-alpha Thu Jul 27 20:36:44 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 62C7E37B597 for ; Thu, 27 Jul 2000 20:36:41 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id XAA08407; Thu, 27 Jul 2000 23:36:40 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id XAA71265; Thu, 27 Jul 2000 23:36:40 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 27 Jul 2000 23:36:39 -0400 (EDT) To: "Andrei A. Dergatchev" Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: Using the Compaq Math lib natively In-Reply-To: <39805BB4.9BB8A1F8@tn.utwente.nl> References: <14720.19316.592646.531221@grasshopper.cs.duke.edu> <39805BB4.9BB8A1F8@tn.utwente.nl> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14720.65044.753276.107696@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Andrei A. Dergatchev writes: > Digital' docs is the most useful thing I found - pretty detailed description of > ieee_get_fp_control: > Thanks.. This is the OSF/1 definition, but seems to agree with what I found in the linux header files. > errno_location seems to be LinuxThreads thing - couldn't find anything > in onlne DEC documents. I've emperically determined this is just a pointer to errno. The following wrapper should allow you to use the static version of the cpml: /* ------ cut here ---------------------------- */ #include #include #include u_int64_t __ieee_get_fp_control(void) { return fpgetmask(); } int * __errno_location(void) { return &errno; } /* ------ cut here ---------------------------- */ BTW, I'm typing this from an native FreeBSD/alpha X server linked with the cpml ;-) It seems to be faster than it used to be when linked with the native libm. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message