diff options
author | Q <andrea@nocte.co.uk> | 2014-03-27 09:48:26 +0000 |
---|---|---|
committer | Q <andrea@nocte.co.uk> | 2014-03-27 09:48:26 +0000 |
commit | cc719183cbc1fb6d2aebeb3150780d5c0e3f86e5 (patch) | |
tree | 65dcab27479085b99305a7a8a41beeefee37deb7 /src/helper.c | |
parent | 0bb0f22ddec2de97f7938916c9cf278b99e6a9e7 (diff) | |
download | LibXtract-cc719183cbc1fb6d2aebeb3150780d5c0e3f86e5.tar.gz LibXtract-cc719183cbc1fb6d2aebeb3150780d5c0e3f86e5.tar.bz2 LibXtract-cc719183cbc1fb6d2aebeb3150780d5c0e3f86e5.zip |
add VC2012 project to compile static and dynamic lib, also fix some C
issues
Diffstat (limited to 'src/helper.c')
-rw-r--r-- | src/helper.c | 6 |
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))); } |