[hash] Comment

pull/4228/head
Behdad Esfahbod 2 years ago
parent fa64e42d75
commit e2fd49ff1a
  1. 2
      src/hb-algs.hh

@ -317,7 +317,7 @@ struct
// Horrible: std:hash() of integers seems to be identity in gcc / clang?!
template <typename T,
hb_enable_if (std::is_integral<T>::value)> constexpr auto
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, v * 8388607)
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, v * 8388607 /* Mersenne prime */)
template <typename T> constexpr auto
impl (const T& v, hb_priority<0>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v))>>{} (hb_deref (v)))

Loading…
Cancel
Save