]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/misc.cc
Release: bump Welcome versions.
[lilypond.git] / lily / misc.cc
index 77fbb2137489cb55ed16fe04a205200958a7a381..6cafa2b50b3669fac258e5d2b1d3e51cdb737db1 100644 (file)
 #include "offset.hh"
 #include "warn.hh"
 
-using std::string;
-using std::vector;
-
-/*
-  Return the 2-log, rounded down
-*/
-int
-intlog2 (int d)
-{
-  if (d <= 0)
-    error ("intlog2 with negative argument: " + ::to_string (d));
-  int i = 0;
-  while ((d != 1))
-    {
-      d /= 2;
-      i++;
-    }
-
-  assert (! (d / 2));
-  return i;
-}
-
 double
 log_2 (double x)
 {
@@ -67,7 +45,7 @@ peak_around (Real epsilon, Real threshold, Real x)
 {
   if (x < 0)
     return 1.0;
-  return std::max (- epsilon * (x - threshold) / ((x + epsilon) * threshold), 0.0);
+  return max (- epsilon * (x - threshold) / ((x + epsilon) * threshold), 0.0);
 }
 
 /*