projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b649d
)
use math aliases in mathutils
author
Paul Brossier
<piem@altern.org>
Wed, 12 Jul 2006 16:25:57 +0000
(16:25 +0000)
committer
Paul Brossier
<piem@altern.org>
Wed, 12 Jul 2006 16:25:57 +0000
(16:25 +0000)
use math aliases in mathutils
src/mathutils.c
patch
|
blob
|
history
diff --git
a/src/mathutils.c
b/src/mathutils.c
index da5fe927755e9a2237963a08cd3c0fa01614e694..79b4def5ddc17fa006798170a3a8e1f4fbc30bfb 100644
(file)
--- a/
src/mathutils.c
+++ b/
src/mathutils.c
@@
-65,7
+65,7
@@
void aubio_window(smpl_t *w, uint_t size, aubio_window_type wintype) {
break;
case aubio_win_parzen:
for (i=0;i<size;i++)
- w[i] = 1.0 -
fabsf
((2*i-size)/(size+1.0));
+ w[i] = 1.0 -
ABS
((2*i-size)/(size+1.0));
break;
default:
break;
@@
-75,7
+75,7
@@
void aubio_window(smpl_t *w, uint_t size, aubio_window_type wintype) {
smpl_t aubio_unwrap2pi(smpl_t phase) {
/* mod(phase+pi,-2pi)+pi */
- return phase + TWO_PI * (1. +
floorf
(-(phase+PI)/TWO_PI));
+ return phase + TWO_PI * (1. +
FLOOR
(-(phase+PI)/TWO_PI));
}