mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[hash] Wrap specialization in HB_OPTIMIZE_SIZE_MORE
This commit is contained in:
parent
b2b15fa30a
commit
826fe2c9f7
1 changed files with 2 additions and 0 deletions
|
@ -454,6 +454,7 @@ inline bool hb_array_t<const unsigned char>::operator == (const hb_array_t<const
|
|||
|
||||
/* Specialize hash() for byte arrays. */
|
||||
|
||||
#ifndef HB_OPTIMIZE_SIZE_MORE
|
||||
template <>
|
||||
inline uint32_t hb_array_t<const char>::hash () const
|
||||
{
|
||||
|
@ -467,6 +468,7 @@ inline uint32_t hb_array_t<const unsigned char>::hash () const
|
|||
// https://github.com/harfbuzz/harfbuzz/pull/4228
|
||||
return fasthash32(arrayZ, length, 0xf437ffe6 /* magic? */);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
typedef hb_array_t<const char> hb_bytes_t;
|
||||
|
|
Loading…
Add table
Reference in a new issue