mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-19 18:16:44 +00:00
get rid of type redefinitions
This commit is contained in:
parent
f238fb1ce6
commit
4e34b8926b
@ -21,14 +21,6 @@ typedef struct conv_set* conv_object;
|
|||||||
|
|
||||||
conv_object conv_init(int N, int L);
|
conv_object conv_init(int N, int L);
|
||||||
|
|
||||||
struct conv_set{
|
|
||||||
fft_real_object fobj;
|
|
||||||
fft_real_object iobj;
|
|
||||||
int ilen1;
|
|
||||||
int ilen2;
|
|
||||||
int clen;
|
|
||||||
};
|
|
||||||
|
|
||||||
int factorf(int M);
|
int factorf(int M);
|
||||||
|
|
||||||
int findnext(int M);
|
int findnext(int M);
|
||||||
|
16
src/hsfft.h
16
src/hsfft.h
@ -12,6 +12,8 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "wavelib.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
@ -22,11 +24,6 @@ extern "C" {
|
|||||||
#define fft_type double
|
#define fft_type double
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct fft_t {
|
|
||||||
fft_type re;
|
|
||||||
fft_type im;
|
|
||||||
} fft_data;
|
|
||||||
/*
|
/*
|
||||||
#define SADD(a,b) ((a)+(b))
|
#define SADD(a,b) ((a)+(b))
|
||||||
|
|
||||||
@ -39,15 +36,6 @@ typedef struct fft_set* fft_object;
|
|||||||
|
|
||||||
fft_object fft_init(int N, int sgn);
|
fft_object fft_init(int N, int sgn);
|
||||||
|
|
||||||
struct fft_set{
|
|
||||||
int N;
|
|
||||||
int sgn;
|
|
||||||
int factors[64];
|
|
||||||
int lf;
|
|
||||||
int lt;
|
|
||||||
fft_data twiddle[1];
|
|
||||||
};
|
|
||||||
|
|
||||||
void fft_exec(fft_object obj,fft_data *inp,fft_data *oup);
|
void fft_exec(fft_object obj,fft_data *inp,fft_data *oup);
|
||||||
|
|
||||||
int divideby(int M,int d);
|
int divideby(int M,int d);
|
||||||
|
@ -18,11 +18,6 @@ typedef struct fft_real_set* fft_real_object;
|
|||||||
|
|
||||||
fft_real_object fft_real_init(int N, int sgn);
|
fft_real_object fft_real_init(int N, int sgn);
|
||||||
|
|
||||||
struct fft_real_set{
|
|
||||||
fft_object cobj;
|
|
||||||
fft_data twiddle2[1];
|
|
||||||
};
|
|
||||||
|
|
||||||
void fft_r2c_exec(fft_real_object obj,fft_type *inp,fft_data *oup);
|
void fft_r2c_exec(fft_real_object obj,fft_type *inp,fft_data *oup);
|
||||||
|
|
||||||
void fft_c2r_exec(fft_real_object obj,fft_data *inp,fft_type *oup);
|
void fft_c2r_exec(fft_real_object obj,fft_data *inp,fft_type *oup);
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "wavelib.h"
|
#include "wavelib.h"
|
||||||
#include "wtmath.h"
|
#include "wtmath.h"
|
||||||
|
|
||||||
|
|
||||||
wave_object wave_init(const char* wname) {
|
wave_object wave_init(const char* wname) {
|
||||||
wave_object obj = NULL;
|
wave_object obj = NULL;
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user