mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-23 00:44:38 +00:00
faster, less bits :)
This commit is contained in:
parent
63d9698d5c
commit
b9b2244b82
1 changed files with 2 additions and 9 deletions
|
@ -76,15 +76,8 @@ static matrix_row_t get_real_keys(uint8_t row, matrix_row_t rowdata){
|
|||
|
||||
static inline bool countones(matrix_row_t row)
|
||||
{
|
||||
int count = 0;
|
||||
while (row > 0){
|
||||
count += 1;
|
||||
row &= row-1;
|
||||
}
|
||||
if (count > 1){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return row;
|
||||
}
|
||||
|
||||
static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata)
|
||||
|
|
Loading…
Reference in a new issue