From 016e3d6b04b522e8444677d52ca264c84723522e Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Fri, 28 Jul 2017 07:16:49 +0000
Subject: [PATCH] Merged common.py from RADIOHDL and UPE so that they are the
 same again.

---
 tools/oneclick/base/common.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/oneclick/base/common.py b/tools/oneclick/base/common.py
index aa273a4dc8..1c62d6374a 100644
--- a/tools/oneclick/base/common.py
+++ b/tools/oneclick/base/common.py
@@ -288,7 +288,8 @@ def reverse_byte(byte):
     """
     Fast way to reverse a byte on 64-bit platforms.
     """
-    return (byte * 0x0202020202L & 0x010884422010L) % 1023
+    #return (byte * 0x0202020202L & 0x010884422010L) % 1023
+    return(byte * 0x0202020202 & 0x010884422010) % 1023  # PD: check
 
 def reverse_word(word):
     """
@@ -829,7 +830,7 @@ class CommonBits:
                 # We only want one bit
                 bitmask = self.bitmask(1)
                 return int((self.data >> bitslice) & bitmask)
-            print(bitmask            )
+            print(bitmask)
         else:
             print('CommonBits: Error: invalid slice range')
 
-- 
GitLab