Another try at fixing mingw32 build bot fail
This commit is contained in:
parent
bc1183aa6b
commit
ced86da7dd
|
@ -337,10 +337,10 @@ static inline HB_CONST_FUNC unsigned int
|
||||||
_hb_popcount64 (uint64_t mask)
|
_hb_popcount64 (uint64_t mask)
|
||||||
{
|
{
|
||||||
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
||||||
return __builtin_popcountl (mask);
|
if (sizeof (long) >= sizeof (mask))
|
||||||
#else
|
return __builtin_popcountl (mask);
|
||||||
return _hb_popcount32 (mask) + _hb_popcount32 (mask >> 32);
|
|
||||||
#endif
|
#endif
|
||||||
|
return _hb_popcount32 (mask) + _hb_popcount32 (mask >> 32);
|
||||||
}
|
}
|
||||||
template <typename T> static inline unsigned int _hb_popcount (T mask);
|
template <typename T> static inline unsigned int _hb_popcount (T mask);
|
||||||
template <> inline unsigned int _hb_popcount<uint32_t> (uint32_t mask) { return _hb_popcount32 (mask); }
|
template <> inline unsigned int _hb_popcount<uint32_t> (uint32_t mask) { return _hb_popcount32 (mask); }
|
||||||
|
|
Loading…
Reference in New Issue