tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Add exp2() and exp2f() to libm



Vitor Sessak wrote:
Hi,

The attached patch add these two C99/POSIX functions to libm. They are needed to compile the latest version of FFmpeg. Unfortunately, I could not test these changes myself.

Sorry to reply to self, but it's late in the evening and I've committed a silly coding mistake. New version of the two C files attached.

-Vitor
/*
 * exp2() wrapper for exp()
 */

#include <math.h>

double
exp2f(double x)
{
        return exp(x * M_LN2);
}
/*
 * exp2f() wrapper for expf()
 */

#include <math.h>

float
exp2f(float x)
{
        return expf(x * M_LN2);
}


Home | Main Index | Thread Index | Old Index