From owner-freebsd-numerics@FreeBSD.ORG Thu Mar 27 02:02:20 2014 Return-Path: Delivered-To: freebsd-numerics@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ED988E03 for ; Thu, 27 Mar 2014 02:02:20 +0000 (UTC) Received: from mst-rip5-missouri-out.um.umsystem.edu (mst-rip5-missouri-out.um.umsystem.edu [198.209.50.135]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "um-tip1.um.umsystem.edu", Issuer "InCommon Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A2C67C14 for ; Thu, 27 Mar 2014 02:02:20 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhIFABuGM1PPoJ7Q/2dsb2JhbABZgwaBEr9ugxSBGhZ0giUBAQEEeBECAQgYCRYPCQMCAQIBICUCBA0IAQGHdcozhnEXjniEOASJGqFmgy6CKw X-IPAS-Result: AhIFABuGM1PPoJ7Q/2dsb2JhbABZgwaBEr9ugxSBGhZ0giUBAQEEeBECAQgYCRYPCQMCAQIBICUCBA0IAQGHdcozhnEXjniEOASJGqFmgy6CKw Received: from um-ncas4.um.umsystem.edu ([207.160.158.208]) by mst-rip5-exch-relay.um.umsystem.edu with ESMTP; 26 Mar 2014 21:01:10 -0500 Received: from UM-MBX-N02.um.umsystem.edu ([169.254.5.16]) by UM-NCAS4.um.umsystem.edu ([207.160.158.208]) with mapi id 14.03.0181.006; Wed, 26 Mar 2014 21:01:09 -0500 From: "Montgomery-Smith, Stephen" To: "freebsd-numerics@freebsd.org" Subject: Re: clang is almost useless for complex arithmetic Thread-Topic: clang is almost useless for complex arithmetic Thread-Index: AQHPSIl06QNmv2vusESQ4jQvsrqL3pr0g5GA Date: Thu, 27 Mar 2014 02:01:08 +0000 Message-ID: <53338661.7060205@missouri.edu> References: <20140326002205.GA9940@troutmask.apl.washington.edu> In-Reply-To: <20140326002205.GA9940@troutmask.apl.washington.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 x-originating-ip: [207.160.158.206] Content-Type: text/plain; charset="iso-8859-1" Content-ID: <4884A900CC292A4D91E324E569FEE860@missouri.edu> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 02:02:21 -0000 On 03/25/2014 07:22 PM, Steve Kargl wrote: > It appears that clang developers have chosen the naive > complex division algorithm, and it does not matter whether > one turns CX_LIMITED_RANGE on or off. This means that=20 > if one uses clang with complex types, one must be careful > with the range of values allowed in complex division. In > other words, implementation of complex libm routines cannot > use complex data types and must fallback to a decomposition > into real and imaginary components.=20 Could someone write a patch for clang to fix this?