From owner-freebsd-questions Wed Feb 12 19: 3:33 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B1B37B401 for ; Wed, 12 Feb 2003 19:03:32 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7515743FAF for ; Wed, 12 Feb 2003 19:03:31 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h1D33T7a092904; Wed, 12 Feb 2003 21:03:29 -0600 (CST) (envelope-from dan) Date: Wed, 12 Feb 2003 21:03:29 -0600 From: Dan Nelson To: Parveen Patel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: floating point in the kernel Message-ID: <20030213030329.GA37594@dan.emsphone.com> References: <20030213001316.GD1980@dan.emsphone.com> <20030212194757.U25147-100000@bas.flux.utah.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030212194757.U25147-100000@bas.flux.utah.edu> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Feb 12), Parveen Patel said: > Thanks for your response. My only concern is a square root operation > I have to do. Is there some standard routine that will do it for long > long or else I can pull out some code from gnu/i386/fpemul to do my > computations. Try http://www.azillionmonkeys.com/qed/sqroot.html , which has a whole bunch of sqrt functions. Also remember that if you're only comparing the sqrt to something else, it may be easier to square the rest of the equation instead. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message