From owner-svn-src-head@FreeBSD.ORG Mon May 27 15:26:25 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AFE802C9; Mon, 27 May 2013 15:26:25 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay006.isp.belgacom.be (mailrelay006.isp.belgacom.be [195.238.6.172]) by mx1.freebsd.org (Postfix) with ESMTP id A3CDA9E1; Mon, 27 May 2013 15:26:24 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuwGAFt6o1FbsKBk/2dsb2JhbABagwgwwgWBBRd0giMBAQVWIgEQCw4GBAkWDwkDAgECASceBg0BBwEBiA0IvU+PDBEHg1QDj36BK4c7kBeDETo Received: from 100.160-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.160.100]) by relay.skynet.be with ESMTP; 27 May 2013 17:26:13 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r4RFQC5U003203; Mon, 27 May 2013 17:26:12 +0200 (CEST) (envelope-from tijl@coosemans.org) Message-ID: <51A37B0E.1010807@coosemans.org> Date: Mon, 27 May 2013 17:26:06 +0200 From: Tijl Coosemans User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130517 Thunderbird/17.0.6 MIME-Version: 1.0 To: David Schultz Subject: Re: svn commit: r250990 - head/include References: <201305251855.r4PIttB7052695@svn.freebsd.org> <20130527083441.GA1309@zim.MIT.EDU> In-Reply-To: <20130527083441.GA1309@zim.MIT.EDU> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2REMGGGQRAXOEWXDKWVFM" Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Ed Schouten X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 May 2013 15:26:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2REMGGGQRAXOEWXDKWVFM Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-05-27 10:34, David Schultz wrote: > On Sat, May 25, 2013, Ed Schouten wrote: >> Author: ed >> Date: Sat May 25 18:55:55 2013 >> New Revision: 250990 >> URL: http://svnweb.freebsd.org/changeset/base/250990 >> >> Log: >> Add C11 macros CMPLX(), CMPLXF() and CMPLXL(). >> =20 >> Clang allows us to initialize complex numbers using an array >> initializer, casted to a complex type. GCC has a builtin called >> __builtin_complex(). >=20 > Awesome, thanks! I recall that we talked about this last year, and > the blocking issue was that gcc didn't support it. It appears > that the one in the base system still doesn't, but now that clang > is the default compiler, maybe that doesn't matter. >=20 > There are some regression tests in tools/regression/lib/msun that > could be converted to exercise these macros if you wish: grep for > "cpack". You could add a cpack-like fall-back for old gcc. It's not usable for static initialisation, but maybe it's better than nothing. #define CMPLX(x, y) __extension__({ double complex __z; \ __real__ __z =3D (x); __imag__ __z =3D (y); __z; }) ------enig2REMGGGQRAXOEWXDKWVFM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iF4EAREIAAYFAlGjexMACgkQfoCS2CCgtiuFwgD/bV7CvQcPpjpbgBmxw6MD9FWX D9O/H4h+xXxctU/nZgsA/jIeUD+RK+IR5UrEURH0BP02wFrMacxKGFuDvYdtv0m3 =K80O -----END PGP SIGNATURE----- ------enig2REMGGGQRAXOEWXDKWVFM--