optimized
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user