aboutsummaryrefslogtreecommitdiff
path: root/xtract/xtract_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'xtract/xtract_helper.h')
-rw-r--r--xtract/xtract_helper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xtract/xtract_helper.h b/xtract/xtract_helper.h
index a77cf5b..52851c1 100644
--- a/xtract/xtract_helper.h
+++ b/xtract/xtract_helper.h
@@ -27,6 +27,8 @@
extern "C" {
#endif
+#include <stdbool.h>
+
/**
* \defgroup helper helper functions
*
@@ -66,6 +68,9 @@ int xtract_features_from_subframes(const float *data, const int N, const int fea
/** \brief Test whether a number is denormal */
int xtract_is_denormal(double const d);
+/** \brief Test whether a number is a power of two */
+bool xtract_is_poweroftwo(unsigned int x);
+
/** @} */
#ifdef __cplusplus