svn commit: r250990 - head/include

David Schultz das at FreeBSD.ORG
Mon May 27 08:34:45 UTC 2013


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".


More information about the svn-src-head mailing list