aboutsummaryrefslogtreecommitdiff
path: root/src/scalar.c
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2007-09-03 14:31:58 +0000
committerJamie Bullock <jamie@postlude.co.uk>2007-09-03 14:31:58 +0000
commitf8eed0713059b5c4e8e56ba98b8a33fe2a472d84 (patch)
tree3d77ea00cb55394fce82811fad29aaa258bdf776 /src/scalar.c
parentff80e419ed5ce6291eefa90dc01b22939d15b0d0 (diff)
downloadLibXtract-f8eed0713059b5c4e8e56ba98b8a33fe2a472d84.tar.gz
LibXtract-f8eed0713059b5c4e8e56ba98b8a33fe2a472d84.tar.bz2
LibXtract-f8eed0713059b5c4e8e56ba98b8a33fe2a472d84.zip
Checked ANSI C89 compliance (basically a few ifndefs for the C99 math functions: powf, roundf etc). Added a few PD examples/tests.
Diffstat (limited to 'src/scalar.c')
-rw-r--r--src/scalar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scalar.c b/src/scalar.c
index ec22dd4..6270869 100644
--- a/src/scalar.c
+++ b/src/scalar.c
@@ -28,6 +28,14 @@
#include <string.h>
#include <stdio.h>
+#ifndef powf
+ #define powf pow
+#endif
+
+#ifndef expf
+ #define expf exp
+#endif
+
int xtract_mean(const float *data, const int N, const void *argv, float *result){
int n = N;