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/gru/hexint.py | |
parent | 52df5e3224d67727b43361a2292c8c8d85f55a29 (diff) |
Remove hexint and hexshort from gru module
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gru/hexint.py')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/gru/hexint.py | 32 |
1 files changed, 0 insertions, 32 deletions
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 |