summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog/bindings/fastnoise_source_python.cc
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-03-25 18:13:35 +0100
committerGitHub <noreply@github.com>2021-03-25 13:13:35 -0400
commit4dd02dac2fcaf45f398c074735a7359330f78d77 (patch)
treeb09529d96288fbdfb3ad703c3475fbb1154e2548 /gr-analog/python/analog/bindings/fastnoise_source_python.cc
parent9a08594ae534c41d20e21187618de9ff3cc67336 (diff)
analog/fastnoise: avoid modulo operation when picking indices
When the pool is power-of-2-sized, index generation can be done using a simple bitmask. Document this, add logging info. - use unsigned and fixed-length int where due - avoid expensive integer modulo operation when possible - extract power-of-two constexpr - don't clutter the logs for small pool sizes Signed-off-by: Marcus Müller <marcus@hostalia.de>
Diffstat (limited to 'gr-analog/python/analog/bindings/fastnoise_source_python.cc')
-rw-r--r--gr-analog/python/analog/bindings/fastnoise_source_python.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-analog/python/analog/bindings/fastnoise_source_python.cc b/gr-analog/python/analog/bindings/fastnoise_source_python.cc
index e43184bb63..85f9d303d1 100644
--- a/gr-analog/python/analog/bindings/fastnoise_source_python.cc
+++ b/gr-analog/python/analog/bindings/fastnoise_source_python.cc
@@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(fastnoise_source.h) */
-/* BINDTOOL_HEADER_FILE_HASH(a1bcac8382da0203f011bc01e8f42c98) */
+/* BINDTOOL_HEADER_FILE_HASH(8e91642118fc23a803672619b185d5cc) */
/***********************************************************************************/
#include <pybind11/complex.h>