diff options
author | Clayton Smith <argilo@gmail.com> | 2020-10-29 19:04:51 -0400 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-10-30 02:13:26 +0100 |
commit | 0fb20f8f1bcd088d37a4a8cef60e26d8ee402bf4 (patch) | |
tree | 4245612ea01047eecabffee901e51f6ab013e408 /gnuradio-runtime/python/gnuradio | |
parent | 52df5e3224d67727b43361a2292c8c8d85f55a29 (diff) |
Remove hexint and hexshort from gru module
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt | 1 | ||||
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gru/__init__.py | 1 | ||||
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gru/hexint.py | 32 |
3 files changed, 0 insertions, 34 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt b/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt index d7d05ec86a..fa3baa5221 100644 --- a/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt +++ b/gnuradio-runtime/python/gnuradio/gru/CMakeLists.txt @@ -11,7 +11,6 @@ GR_PYTHON_INSTALL(FILES __init__.py freqz.py gnuplot_freqz.py - hexint.py msgq_runner.py daemon.py DESTINATION ${GR_PYTHON_DIR}/gnuradio/gru diff --git a/gnuradio-runtime/python/gnuradio/gru/__init__.py b/gnuradio-runtime/python/gnuradio/gru/__init__.py index 5f20c17aa1..c78c80960a 100644 --- a/gnuradio-runtime/python/gnuradio/gru/__init__.py +++ b/gnuradio-runtime/python/gnuradio/gru/__init__.py @@ -4,5 +4,4 @@ from .daemon import * from .freqz import * from .gnuplot_freqz import * -from .hexint import * from .msgq_runner import * diff --git a/gnuradio-runtime/python/gnuradio/gru/hexint.py b/gnuradio-runtime/python/gnuradio/gru/hexint.py deleted file mode 100644 index ad568b59a6..0000000000 --- a/gnuradio-runtime/python/gnuradio/gru/hexint.py +++ /dev/null @@ -1,32 +0,0 @@ -# -# Copyright 2005 Free Software Foundation, Inc. -# -# This file is part of GNU Radio -# -# SPDX-License-Identifier: GPL-3.0-or-later -# -# - -def hexint(mask): - """ - Convert unsigned masks into signed ints. - - This allows us to use hex constants like 0xf0f0f0f2 when talking to - our hardware and not get screwed by them getting treated as python - longs. - """ - if mask >= 2**31: - return int(mask-2**32) - return mask - -def hexshort(mask): - """ - Convert unsigned masks into signed shorts. - - This allows us to use hex constants like 0x8000 when talking to - our hardware and not get screwed by them getting treated as python - longs. - """ - if mask >= 2**15: - return int(mask-2**16) - return mask |