Compare commits
No commits in common. "0d8642819c40a33b52c9d6bfb3b9492b0a9806d9" and "653a8d133bc67a460f47543ff47c4f8d8db89ed3" have entirely different histories.
0d8642819c
...
653a8d133b
@ -76,8 +76,8 @@ inline void bitwiseInverse(const unsigned char* key, Key& inverted) noexcept {
|
|||||||
}
|
}
|
||||||
inline unsigned char getOnes(const Key& value) noexcept {
|
inline unsigned char getOnes(const Key& value) noexcept {
|
||||||
int leadOnes = 0;
|
int leadOnes = 0;
|
||||||
for (unsigned char i = 0; i < 32; i++) {
|
for (unsigned char i = 0; i < 17; i++) {
|
||||||
if (value[0] != 0xFF && value[1] != 0xFF) return leadOnes;
|
if (value[0] != 0xFF) return leadOnes;
|
||||||
if (value[i] == 0xFF) {
|
if (value[i] == 0xFF) {
|
||||||
leadOnes += 8;
|
leadOnes += 8;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user