mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[algs] Undo touching HACKMEM 169
This commit is contained in:
1 parent
9ed43dc500
commit
262f029e20
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user