Support for C99 cexpf?

Jilles Tjoelker jilles at stack.nl
Fri Oct 14 21:29:21 UTC 2011


On Fri, Oct 14, 2011 at 04:13:51PM -0400, John Lindgren wrote:
> I am the project lead of Audacious (the music player).  Though not
> normally a FreeBSD user, I recently tried to compile Audacious on
> FreeBSD 8.2 and was surprised to see that you do not have the C99
> cexpf function in your C library.  This will make it impossible to use
> the upcoming Audacious 3.1 on FreeBSD, as our current FFT
> implementation relies on the complex exponential.  A web search for
> "audacious freebsd" shows that there are at least some FreeBSD users
> who also use Audacious.  I would be sorry to see them unable to use
> the new version.

The cexpf() function is available in 9.0. However, even if it were to be
MFCed to stable/8, this would still require people to upgrade to a new
stable/8 and compile audacious themselves (either from upstream sources
or via ports); packages are built against the oldest supported release
from the branch.

Therefore, I recommend checking for cexpf() in your configure script and
providing an own implementation if it is not available. You could take
the one from FreeBSD 9 in lib/msun/src/s_cexpf.c and
lib/msun/src/math_private.h, for example.

-- 
Jilles Tjoelker


More information about the freebsd-standards mailing list