~ubuntu-branches/ubuntu/trusty/libsoxr/trusty

« back to all changes in this revision

Viewing changes to src/fft4g64.c

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2013-01-19 13:59:15 UTC
  • Revision ID: package-import@ubuntu.com-20130119135915-ig85015j5zwtf0rp
Tags: upstream-0.1.0
ImportĀ upstreamĀ versionĀ 0.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* SoX Resampler Library      Copyright (c) 2007-13 robs@users.sourceforge.net
 
2
 * Licence for this file: LGPL v2.1                  See LICENCE for details. */
 
3
 
 
4
#include "filter.h"
 
5
#include "fft4g.c"
 
6
#include "soxr-config.h"
 
7
 
 
8
#if HAVE_DOUBLE_PRECISION
 
9
static void * null(void) {return 0;}
 
10
static void nothing(void) {}
 
11
static void forward (int length, void * setup, double * H) {lsx_safe_rdft(length,  1, H); (void)setup;}
 
12
static void backward(int length, void * setup, double * H) {lsx_safe_rdft(length, -1, H); (void)setup;}
 
13
static int multiplier(void) {return 2;}
 
14
 
 
15
typedef void (* fn_t)(void);
 
16
fn_t _soxr_rdft64_cb[] = {
 
17
  (fn_t)null,
 
18
  (fn_t)null,
 
19
  (fn_t)nothing,
 
20
  (fn_t)forward,
 
21
  (fn_t)forward,
 
22
  (fn_t)backward,
 
23
  (fn_t)backward,
 
24
  (fn_t)_soxr_ordered_convolve,
 
25
  (fn_t)_soxr_ordered_partial_convolve,
 
26
  (fn_t)multiplier,
 
27
  (fn_t)nothing,
 
28
};
 
29
#endif