Compare commits
2 Commits
653a8d133b
...
0d8642819c
Author | SHA1 | Date | |
---|---|---|---|
0d8642819c | |||
4de5162665 |
@ -76,8 +76,8 @@ inline void bitwiseInverse(const unsigned char* key, Key& inverted) noexcept {
|
||||
}
|
||||
inline unsigned char getOnes(const Key& value) noexcept {
|
||||
int leadOnes = 0;
|
||||
for (unsigned char i = 0; i < 17; i++) {
|
||||
if (value[0] != 0xFF) return leadOnes;
|
||||
for (unsigned char i = 0; i < 32; i++) {
|
||||
if (value[0] != 0xFF && value[1] != 0xFF) return leadOnes;
|
||||
if (value[i] == 0xFF) {
|
||||
leadOnes += 8;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user