Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2013 01:34:41 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        Ed Schouten <ed@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r250990 - head/include
Message-ID:  <20130527083441.GA1309@zim.MIT.EDU>
In-Reply-To: <201305251855.r4PIttB7052695@svn.freebsd.org>
References:  <201305251855.r4PIttB7052695@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130527083441.GA1309>