[Mesa-dev] [PATCH] Replace ONE_DIV_LN2 constant with M_LOG2E

Brian Paul brian.e.paul at gmail.com
Sat May 7 07:11:02 PDT 2011

On Fri, May 6, 2011 at 11:01 AM, Matt Turner <mattst88 at gmail.com> wrote:
> 1/ln(2) is equivalent to log2(e), so define it as such.
> log2(e) = ln(e)/ln(2) = 1/ln(2)
> Worst of all, the definitions for M_LOG2E and ONE_DIV_LN2
> (right beside each other!) weren't the same.
> Reviewed-by: Alex Deucher <alexdeucher at gmail.com>
> Signed-off-by: Matt Turner <mattst88 at gmail.com>

I've applied this and the M_PI change.  Thanks.


More information about the mesa-dev mailing list