aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-03 21:43:26 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-04-03 21:43:26 +0200
commit8530e511c7ec94fc2832661e36d54d45527e9465 (patch)
tree300626a5187583764143057efb6f600e02e15e4c
parentf635906c5b15708e2a337af0eec1a650f91a547d (diff)
downloadprops.lv2-8530e511c7ec94fc2832661e36d54d45527e9465.tar.xz
Revert "add macro for next power of 2."
This reverts commit dd69874c5e0bfcef68e196ef02ae2f1be0a1b611.
-rw-r--r--VERSION2
-rw-r--r--props.h5
2 files changed, 2 insertions, 5 deletions
diff --git a/VERSION b/VERSION
index 94e74b8..c21e67e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.109
+0.1.113
diff --git a/props.h b/props.h
index 6f28959..6d64289 100644
--- a/props.h
+++ b/props.h
@@ -124,12 +124,9 @@ struct _props_t {
props_impl_t impls [1];
};
-#define NEXT_POWER_OF_2(x) \
- ( ( (x) <= 2 ) ? (x) : ( 1 << ( 32 - __builtin_clz( (x) - 1 ) ) ) )
-
#define PROPS_T(PROPS, MAX_NIMPLS) \
props_t (PROPS); \
- props_impl_t _impls [NEXT_POWER_OF_2(MAX_NIMPLS) - 1]
+ props_impl_t _impls [MAX_NIMPLS]
// rt-safe
static inline int