From owner-svn-src-head@FreeBSD.ORG Mon May 27 08:34:45 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 45C0E409; Mon, 27 May 2013 08:34:45 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (50-196-151-174-static.hfc.comcastbusiness.net [50.196.151.174]) by mx1.freebsd.org (Postfix) with ESMTP id 2C573D5F; Mon, 27 May 2013 08:34:44 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.7/8.14.2) with ESMTP id r4R8YfVG001493; Mon, 27 May 2013 01:34:41 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.7/8.14.2/Submit) id r4R8YfT8001492; Mon, 27 May 2013 01:34:41 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Mon, 27 May 2013 01:34:41 -0700 From: David Schultz To: Ed Schouten Subject: Re: svn commit: r250990 - head/include Message-ID: <20130527083441.GA1309@zim.MIT.EDU> References: <201305251855.r4PIttB7052695@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201305251855.r4PIttB7052695@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org 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 08:34:45 -0000 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(). > > Clang allows us to initialize complex numbers using an array > initializer, casted to a complex type. GCC has a builtin called > __builtin_complex(). 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. There are some regression tests in tools/regression/lib/msun that could be converted to exercise these macros if you wish: grep for "cpack".