aboutsummaryrefslogtreecommitdiff
path: root/src/helper.c
diff options
context:
space:
mode:
authorJamie Bullock <jamie@jamiebullock.com>2014-03-27 14:56:36 +0000
committerJamie Bullock <jamie@jamiebullock.com>2014-03-27 14:56:36 +0000
commitf5423497d2d4718fc3385003329a135ee8078615 (patch)
tree0669b31b8ca90444b4e92c7c239568d2729c11c9 /src/helper.c
parent0bb0f22ddec2de97f7938916c9cf278b99e6a9e7 (diff)
parent8e718bfda48218dc4f007cad578d308227f2bb41 (diff)
downloadLibXtract-f5423497d2d4718fc3385003329a135ee8078615.tar.gz
LibXtract-f5423497d2d4718fc3385003329a135ee8078615.tar.bz2
LibXtract-f5423497d2d4718fc3385003329a135ee8078615.zip
Merge pull request #58 from q-depot/master
add VC2012 project to compile static and dynamic lib, also fix some C
Diffstat (limited to 'src/helper.c')
-rw-r--r--src/helper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/helper.c b/src/helper.c
index 182276f..5b7155f 100644
--- a/src/helper.c
+++ b/src/helper.c
@@ -75,7 +75,8 @@ int xtract_features_from_subframes(const double *data, const int N, const int fe
}
-inline int xtract_is_denormal(double const d)
+//inline int xtract_is_denormal(double const d)
+int xtract_is_denormal(double const d)
{
if(sizeof(d) != 2 * sizeof(int))
fprintf(stderr, "libxtract: Error: xtract_is_denormal() detects inconsistent wordlength for type 'double'\n");
@@ -84,7 +85,8 @@ inline int xtract_is_denormal(double const d)
return (l&0x7ff00000) == 0 && d!=0; //Check for 0 may not be necessary
}
-inline bool xtract_is_poweroftwo(unsigned int x)
+//inline bool xtract_is_poweroftwo(unsigned int x)
+bool xtract_is_poweroftwo(unsigned int x)
{
return ((x != 0) && !(x & (x - 1)));
}