summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python
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 /gnuradio-runtime/python
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 'gnuradio-runtime/python')
0 files changed, 0 insertions, 0 deletions