]> git.donarmstrong.com Git - lilypond.git/blob - hdr/misc.hh
release: 0.0.20
[lilypond.git] / hdr / misc.hh
1 #ifndef MISC_HH
2 #define MISC_HH
3
4 #include "real.hh"
5 #include "moment.hh"
6
7 Moment wholes(int dur, int dots);
8     
9 double log_2(double x) ;
10 int intlog2(int d);
11 inline int
12 abs(int i){
13     return (i < 0)?-i:i;
14 }
15 inline int
16 sign(int i) {
17     if (i<0) return -1;
18     else if (i) return 1;
19     else return 0;
20 }
21
22
23 #endif