aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/common/convert.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-03-16 14:50:25 +0100
committerTom Tsou <tom@tsou.cc>2017-05-19 17:16:37 +0000
commitfe9769833fa74ea841f78c0e931130a70fc3aca9 (patch)
tree5145cf70925bec2f634551ee0d7b1c8134078c4a /Transceiver52M/common/convert.h
parent7e07cf23464532ca156fe4ea4430928da2cbbff1 (diff)
cosmetic: remove code duplication
The ARM and the X86 implementation of the conversion functions share the same, non cpu specific implementation in separate files. This commit removes the code duplication by putting the generic implementation into a convert_base.c, similar to to convolve_base.c Change-Id: Ic8d8534a343e27cde79ddc85be4998ebd0cb6e5c
Diffstat (limited to 'Transceiver52M/common/convert.h')
-rw-r--r--Transceiver52M/common/convert.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Transceiver52M/common/convert.h b/Transceiver52M/common/convert.h
index 1d3a180..73402b0 100644
--- a/Transceiver52M/common/convert.h
+++ b/Transceiver52M/common/convert.h
@@ -2,7 +2,14 @@
#define _CONVERT_H_
void convert_float_short(short *out, const float *in, float scale, int len);
+
void convert_short_float(float *out, const short *in, int len);
+
+void base_convert_float_short(short *out, const float *in,
+ float scale, int len);
+
+void base_convert_short_float(float *out, const short *in, int len);
+
void convert_init(void);
#endif /* _CONVERT_H_ */