Use wider set digests on 64-bit archs
This commit is contained in:
parent
0120ce9679
commit
e2b8d75fa6
|
@ -36,7 +36,7 @@ struct hb_set_digest_common_bits_t
|
||||||
{
|
{
|
||||||
ASSERT_POD ();
|
ASSERT_POD ();
|
||||||
|
|
||||||
typedef uint16_t mask_t;
|
typedef unsigned int mask_t;
|
||||||
|
|
||||||
inline void init (void) {
|
inline void init (void) {
|
||||||
mask = ~0;
|
mask = ~0;
|
||||||
|
@ -72,7 +72,7 @@ struct hb_set_digest_lowest_bits_t
|
||||||
{
|
{
|
||||||
ASSERT_POD ();
|
ASSERT_POD ();
|
||||||
|
|
||||||
typedef uint32_t mask_t;
|
typedef unsigned long mask_t;
|
||||||
|
|
||||||
inline void init (void) {
|
inline void init (void) {
|
||||||
mask = 0;
|
mask = 0;
|
||||||
|
@ -94,7 +94,7 @@ struct hb_set_digest_lowest_bits_t
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
mask_t mask_for (hb_codepoint_t g) const { return 1 << (g & (sizeof (mask_t) * 8 - 1)); }
|
mask_t mask_for (hb_codepoint_t g) const { return ((mask_t) 1) << (g & (sizeof (mask_t) * 8 - 1)); }
|
||||||
mask_t mask;
|
mask_t mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue