aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-10-02 12:57:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-10-02 12:57:44 +0000
commit92b70b435c47d4735d2cd5b3299705bbd33f51e3 (patch)
tree1f248f082f53de5bd07f205d98d764498d5676d9
parentf0ca536edd6089fb8030fc98df021239e99cb403 (diff)
replace magic number
-rw-r--r--fft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fft.c b/fft.c
index f373951..5f9f1ff 100644
--- a/fft.c
+++ b/fft.c
@@ -45,7 +45,7 @@ hamming(size_t n)
for (i = 0; i < n; i++) {
p[i] = alpha - beta * cos(2 * M_PI * i / (n - 1));
- p[i] /= INT16_MAX * 0.707;
+ p[i] /= INT16_MAX * M_SQRT1_2;
}
return p;