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.3.16
[lilypond.git]
/
lily
/
include
/
misc.hh
blob
917c66a6b67163a6639c361946e18ccb0dfe97b6
1
#ifndef MISC_HH
2
#define MISC_HH
3
4
#include <stdlib.h>
5
6
#include
"real.hh"
7
#include
"array.hh"
8
#include
"interval.hh"
9
10
double
log_2
(
double
x
) ;
11
int
intlog2
(
int
d
);
12
13
inline
int
14
sign
(
int
i
)
15
{
16
if
(
i
<
0
)
17
return
-
1
;
18
else if
(
i
)
19
return
1
;
20
else return
0
;
21
}
22
23
Interval
quantise_iv
(
Array
<
Real
>
positions
,
Real x
);
24
25
#endif
26