Add two new buttons to expand or collapse all signals.

This commit is contained in:
Collin Kidder
2020-04-02 21:47:20 -04:00
parent 503e662feb
commit 9c143c2b12
4 changed files with 84 additions and 6 deletions
+4
View File
@@ -194,6 +194,8 @@ public:
for (int bitpos = 0; bitpos < sigSize; bitpos++)
{
if (bit < 64) {
int bytePos = bit / 8;
if (bytePos >= data.count()) return 0; //error!
if (data[bit / 8] & (1 << (bit % 8)))
result += (1ULL << bitpos);
}
@@ -206,6 +208,8 @@ public:
for (int bitpos = 0; bitpos < sigSize; bitpos++)
{
if (bit < 64) {
int bytePos = bit / 8;
if (bytePos >= data.count()) return 0; //error!
if (data[bit / 8] & (1 << (bit % 8)))
result += (1ULL << (sigSize - bitpos - 1));
}