shithub: leaf

Download patch

ref: f39097166d74311950348fa3205bed7838ba3b25
parent: 007893b34b10c827ea7698adecaf6ead27e2f974
author: Jeff Snyder <jeff@snyderphonics.com>
date: Wed Sep 25 18:15:33 EDT 2019

added two_to_32 and reduced mempool size

--- a/LEAF/Inc/leaf-math.h
+++ b/LEAF/Inc/leaf-math.h
@@ -75,6 +75,8 @@
 #define INV_TWO_TO_23	0.00000011920929f
 #define TWO_TO_31		2147483648.0f
 #define INV_TWO_TO_31	0.000000000465661f
+#define TWO_TO_32		4294967296.0f
+#define INV_TWO_TO_32	0.000000000232831f
 
 // Jones shaper
 float LEAF_shaper     (float input, float m_drive);
--- a/LEAF/Inc/leaf-mempool.h
+++ b/LEAF/Inc/leaf-mempool.h
@@ -51,7 +51,7 @@
 //==============================================================================
 
 
-#define MPOOL_POOL_SIZE   500000
+#define MPOOL_POOL_SIZE   50000
 
 #define MPOOL_ALIGN_SIZE (8)