# HG changeset patch # User mru # Date 1266696828 0 # Node ID d1890ea2aa5cac0a7af696531efd9a6e5250baa7 # Parent 496ffb1657ea903a475d7a7cb20717df045a097d Replace log2f(10) with a constant diff -r 496ffb1657ea -r d1890ea2aa5c mathematics.h --- a/mathematics.h Sat Feb 20 16:02:48 2010 +0000 +++ b/mathematics.h Sat Feb 20 20:13:48 2010 +0000 @@ -35,6 +35,9 @@ #ifndef M_LN10 #define M_LN10 2.30258509299404568402 /* log_e 10 */ #endif +#ifndef M_LOG2_10 +#define M_LOG2_10 3.32192809488736218171 /* log_2 10 */ +#endif #ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif