mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Revert "Speed up hb_set_digest_common_bits_t calcs"
This reverts commit 3d1b66a35e.
The calculations were buggy. It's not worth optimizing right now.
This commit is contained in:
1 parent
2b712bba3f
commit
1357c2dd12
1 file changed
+3
-3
@@ -54,9 +54,9 @@ struct hb_set_digest_common_bits_t
|
||||
}
|
||||
|
||||
inline void add_range (hb_codepoint_t a, hb_codepoint_t b) {
|
||||
/* The negation here stands for ~(x-1). */
|
||||
mask &= -(1 << _hb_bit_storage (a ^ b));
|
||||
value &= mask;
|
||||
/* TODO Speedup. */
|
||||
for (unsigned int i = a; i < b + 1; i++)
|
||||
add (i);
|
||||
}
|
||||
|
||||
inline bool may_have (hb_codepoint_t g) const {
|
||||
|
||||
Reference in new issue
Block a user