shithub: npe

ref: 686729f16636fe0310dcb4b3108a572b25c88106
dir: /libnpe/exp2.c/

View raw version
#include <math.h>
#include "_npe.h"

double
exp2(double x)
{
	static double ln2c = 0.0;
	if(ln2c == 0.0)
		ln2c = log(2.0);
	return exp(x*ln2c);
}