lilypond-0.1.12
[lilypond.git] / hdr / misc.hh
blob00b742076e3cb1c6fab555d5a47f468a27654c10
1 #ifndef MISC_HH
2 #define MISC_HH
4 #include "proto.hh"
5 #include "real.hh"
6 #include "moment.hh"
7 #include "scalar.hh"
8 #include "grouping.hh"
10 Moment wholes(int dur, int dots);
11 double log_2(double x) ;
12 int intlog2(int d);
13 inline int
14 abs(int i){
15 return (i < 0)?-i:i;
17 inline int
18 sign(int i) {
19 if (i<0) return -1;
20 else if (i) return 1;
21 else return 0;
24 Interval itemlist_width(const Array<Item*> &its);
26 #endif