aboutsummaryrefslogtreecommitdiff
path: root/fft.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-09-03 02:00:12 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-09-03 02:00:12 +0000
commit14c05d50ad56eedaa50869de6d8b1df749a773fe (patch)
tree7057c7de4f5c1fe33b75ca7a08073898507e212a /fft.c
parenteb9e72e645583932d0b3010e7d49a16e55170f04 (diff)
encapsulate
Diffstat (limited to 'fft.c')
-rw-r--r--fft.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fft.c b/fft.c
index d178a84..55b35f4 100644
--- a/fft.c
+++ b/fft.c
@@ -30,7 +30,7 @@ struct fft {
double *window;
};
-double *
+static double *
hamming(size_t n)
{
double *w;
@@ -46,8 +46,8 @@ hamming(size_t n)
return w;
}
-double *
-fft_realloc(double *p, size_t n)
+static double *
+resize(double *p, size_t n)
{
if (p)
fftw_free(p);
@@ -64,8 +64,8 @@ resize_fft(struct fft *p, size_t n)
if (n != p->n) {
p->n = n;
- p->in = fft_realloc(p->in, p->n);
- p->out = fft_realloc(p->out, p->n);
+ p->in = resize(p->in, p->n);
+ p->out = resize(p->out, p->n);
if (p->window)
free(p->window);