Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/fft4g32.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

#if WITH_CR32
#include "rdft_t.h"
static void * null(void) {return 0;}
static void forward (int length, void * setup, double * H) {lsx_safe_rdft_f(length, 1, H); (void)setup;}
static void backward(int length, void * setup, double * H) {lsx_safe_rdft_f(length, -1, H); (void)setup;}
static void * null(int length) {(void)length; return 0;}
static void nothing(void * setup) {(void)setup;}
static void forward(int length, void * setup, double * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft_f(length, 1, H);}
static void backward(int length, void * setup, double * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft_f(length, -1, H);}
static int multiplier(void) {return 2;}
static void nothing(void) {}
static void nothing2(int length, void * setup, double * H, void * scratch) {(void)length; (void)setup; (void)H; (void)scratch;}
static int flags(void) {return 0;}

fn_t _soxr_rdft32_cb[] = {
Expand All @@ -27,7 +28,7 @@ fn_t _soxr_rdft32_cb[] = {
(fn_t)_soxr_ordered_convolve_f,
(fn_t)_soxr_ordered_partial_convolve_f,
(fn_t)multiplier,
(fn_t)nothing,
(fn_t)nothing2,
(fn_t)malloc,
(fn_t)calloc,
(fn_t)free,
Expand Down
11 changes: 6 additions & 5 deletions src/fft4g32s.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
#include "util32s.h"
#include "rdft_t.h"

static void * null(void) {return 0;}
static void nothing(void) {}
static void forward (int length, void * setup, float * H) {lsx_safe_rdft_f(length, 1, H); (void)setup;}
static void backward(int length, void * setup, float * H) {lsx_safe_rdft_f(length, -1, H); (void)setup;}
static void * null(int length) {(void)length; return 0;}
static void nothing(void * setup) {(void)setup;}
static void forward(int length, void * setup, float * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft_f(length, 1, H);}
static void backward(int length, void * setup, float * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft_f(length, -1, H);}
static int multiplier(void) {return 2;}
static void nothing2(int length, void * setup, float * H, void * scratch) {(void)length; (void)setup; (void)H; (void)scratch;}
static int flags(void) {return RDFT_IS_SIMD;}

fn_t _soxr_rdft32s_cb[] = {
Expand All @@ -23,7 +24,7 @@ fn_t _soxr_rdft32s_cb[] = {
(fn_t)ORDERED_CONVOLVE_SIMD,
(fn_t)ORDERED_PARTIAL_CONVOLVE_SIMD,
(fn_t)multiplier,
(fn_t)nothing,
(fn_t)nothing2,
(fn_t)SIMD_ALIGNED_MALLOC,
(fn_t)SIMD_ALIGNED_CALLOC,
(fn_t)SIMD_ALIGNED_FREE,
Expand Down
11 changes: 6 additions & 5 deletions src/fft4g64.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
#include "soxr-config.h"

#if WITH_CR64
static void * null(void) {return 0;}
static void nothing(void) {}
static void forward (int length, void * setup, double * H) {lsx_safe_rdft(length, 1, H); (void)setup;}
static void backward(int length, void * setup, double * H) {lsx_safe_rdft(length, -1, H); (void)setup;}
static void * null(int length) {(void)length; return 0;}
static void nothing(void * setup) {(void)setup;}
static void forward(int length, void * setup, double * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft(length, 1, H);}
static void backward(int length, void * setup, double * H, void * scratch) {(void)setup; (void)scratch; lsx_safe_rdft(length, -1, H);}
static int multiplier(void) {return 2;}
static void nothing2(int length, void * setup, double * H, void * scratch) {(void)length; (void)setup; (void)H; (void)scratch;}
static int flags(void) {return 0;}

typedef void (* fn_t)(void);
Expand All @@ -26,7 +27,7 @@ fn_t _soxr_rdft64_cb[] = {
(fn_t)_soxr_ordered_convolve,
(fn_t)_soxr_ordered_partial_convolve,
(fn_t)multiplier,
(fn_t)nothing,
(fn_t)nothing2,
(fn_t)malloc,
(fn_t)calloc,
(fn_t)free,
Expand Down