repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-1.0.19
[lilypond.git]
/
hdr
/
misc.hh
blob
00b742076e3cb1c6fab555d5a47f468a27654c10
1
#ifndef MISC_HH
2
#define MISC_HH
3
4
#include
"proto.hh"
5
#include
"real.hh"
6
#include
"moment.hh"
7
#include
"scalar.hh"
8
#include
"grouping.hh"
9
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
;
16
}
17
inline
int
18
sign
(
int
i
) {
19
if
(
i
<
0
)
return
-
1
;
20
else if
(
i
)
return
1
;
21
else return
0
;
22
}
23
24
Interval
itemlist_width
(
const
Array
<
Item
*> &
its
);
25
26
#endif