Commit d986f73a authored by Andreas Tille's avatar Andreas Tille

Try to deal with duplicate definition of log2 but failed

parent b437d408
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 30 Aug 2016 08:25:06 +0200
Bug-Debian: https://bugs.debian.org/835074
Description: Try to deal with duplicate definition of log2 but failed
--- a/src/hhalign/util-C.h
+++ b/src/hhalign/util-C.h
@@ -51,7 +51,9 @@ inline int iround(double x) {return int(
inline double fmean(double x, double y, double d) { return pow( (pow(x,d)+pow(y,d))/2 ,1./d);}
// log base 2
+#ifndef HAVE_LOG2
inline float log2(float x) {return (x<=0? (float)(-100000):1.442695041*log(x));}
+#endif
inline float log10(float x) {return (x<=0? (float)(-100000):0.434294481*log(x));}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment