forked from FALCONN-LIB/FFHT
-
Notifications
You must be signed in to change notification settings - Fork 3
/
fht.h
38 lines (27 loc) · 737 Bytes
/
fht.h
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
32
33
34
35
36
37
38
#ifndef _FHT_H_
#define _FHT_H_
#include <string.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
int fht_float(float *buf, int log_n);
int fht_double(double *buf, int log_n);
int fht_float_oop(float *in, float *out, int log_n);
int fht_double_oop(double *in, double *out, int log_n);
#ifdef __cplusplus
} // extern "C"
static inline int fht(float *buf, int log_n) {
return fht_float(buf, log_n);
}
static inline int fht(double *buf, int log_n) {
return fht_double(buf, log_n);
}
static inline int fht(float *buf, float *out, int log_n) {
return fht_float_oop(buf, out, log_n);
}
static inline int fht(double *buf, double *out, int log_n) {
return fht_double_oop(buf, out, log_n);
}
#endif
#endif