mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[algs] Undo touching HACKMEM 169
This commit is contained in:
parent
9ed43dc500
commit
262f029e20
1 changed files with 2 additions and 2 deletions
|
@ -618,8 +618,8 @@ hb_popcount (T v)
|
|||
if (sizeof (T) <= 4)
|
||||
{
|
||||
/* "HACKMEM 169" */
|
||||
uint32_t y = (uint32_t) v;
|
||||
y = (y >> 1) &033333333333;
|
||||
uint32_t y;
|
||||
y = (v >> 1) &033333333333;
|
||||
y = v - y - ((y >>1) & 033333333333);
|
||||
return (((y + (y >> 3)) & 030707070707) % 077);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue