From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/660 Path: news.gmane.org!not-for-mail From: Pascal Cuoq Newsgroups: gmane.linux.lib.musl.general Subject: Re: correctly rounded sqrt Date: Thu, 15 Mar 2012 19:14:09 +0100 Message-ID: <9048289A-E316-4F75-96C3-60502B2E563D@gmail.com> References: <20120314165604.GF5728@port70.net> <20120314190123.GH5728@port70.net> <20120315014647.GI5728@port70.net> <20120315032304.GJ5728@port70.net> <20120315050748.GC184@brightrain.aerifal.cx> <20120315053011.GK5728@port70.net> <20120315080244.GL5728@port70.net> <20120315161223.GD184@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1331835175 12483 80.91.229.3 (15 Mar 2012 18:12:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2012 18:12:55 +0000 (UTC) Cc: "musl@lists.openwall.com" To: "musl@lists.openwall.com" Original-X-From: musl-return-661-gllmg-musl=m.gmane.org@lists.openwall.com Thu Mar 15 19:12:54 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1S8FAT-0005es-2c for gllmg-musl@plane.gmane.org; Thu, 15 Mar 2012 19:12:53 +0100 Original-Received: (qmail 8113 invoked by uid 550); 15 Mar 2012 18:12:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 8105 invoked from network); 15 Mar 2012 18:12:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=tyschVjej02rdRVPoJKoirCD2RgzQYOEmU8kEeJ7Dqs=; b=UFWOnOPh3oZVEb4mr4a9TRsYIFnzvvfJFK7emWSnm/0A8LoTQj4Cw83akX7+2RdKGr ckav/GU3izi1pLKw6VcOUMm8K2EScnjzgZYfUWVtITbdszTJ03wzy23hDegvQpuPPKqz HMgBXmUungWHwzpduLeQoJLq0S10fF6bqa9HH7GYDpebeCjIs5jT15lujlSNQN0JioGj 0dkvlzcdoN1Y3P22yOAUFdzupkS5pQ21f/6hTvzVYqvKdCqvFCEywbSiJEJKoZbPKTro XEV8Ho7kLQVWie5zG1UVrAKO/RD+xzIVS29pL42MsYWkWdEpJdC9iIpeknJYG0ZRxr7F ttww== In-Reply-To: <20120315161223.GD184@brightrain.aerifal.cx> X-Mailer: iPhone Mail (9A334) Xref: news.gmane.org gmane.linux.lib.musl.general:660 Archived-At: >>=20 >> if (signexp >=3D 0x7fff) is probably a better check >=20 > Haha, this is the second time I stupidly forget sqrt(x) is > nonnegative... :-) Fixing it.. I apologize if this is not relevant =E2=80=94I admit I followed the discussi= on with only half my attention=E2=80=94 but note that sqrt(-0.) is -0., so t= he sign bit may be set in both argument and result of sqrt(). >=20 Pascal=