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". _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"