blob: 80ae6ccdfc25d4ae6910316a2da5a4918b17f2c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// fft.h
// NaiveFFT
//
// Created by Jacky Jack on 26/08/2021.
//
#ifndef fft_h
#define fft_h
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdint.h>
#include <unistd.h>
#if __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif
#ifdef __EMSCRIPTEN__
#define KEEPALIVE EMSCRIPTEN_KEEPALIVE
#else
#define KEEPALIVE
#endif
void KEEPALIVE fft_if(double *x_i, double *x_q, int n, int inv);
void KEEPALIVE ffti_shuffle_1(double *x_i, double *x_q, uint64_t n);
void KEEPALIVE fft_1(double *x_i, double *x_q, uint64_t n, uint64_t inv);
void KEEPALIVE dft(double *x_i, double *x_q, int n, int inv);
#endif /* fft_h */
|