Home | History | Annotate | Download | only in base

Lines Matching refs:hash_value

26 // base::hash is implemented by calling the hash_value function. The namespace
28 // lookup. So if there is a free function hash_value in the same namespace as a
45 // size_t hash_value(Point const& p) {
54 // size_t hash_code = h(p); // calls bar::hash_value(Point const&)
88 V8_INLINE size_t hash_value(type v) { return static_cast<size_t>(v); }
94 size_t hash_value(unsigned int);
95 size_t hash_value(unsigned long); // NOLINT(runtime/int)
96 size_t hash_value(unsigned long long); // NOLINT(runtime/int)
99 V8_INLINE size_t hash_value(signed type v) { \
100 return hash_value(bit_cast<unsigned type>(v)); \
109 V8_INLINE size_t hash_value(float v) {
111 return v != 0.0f ? hash_value(bit_cast<uint32_t>(v)) : 0;
114 V8_INLINE size_t hash_value(double v) {
116 return v != 0.0 ? hash_value(bit_cast<uint64_t>(v)) : 0;
120 V8_INLINE size_t hash_value(const T (&v)[N]) {
125 V8_INLINE size_t hash_value(T (&v)[N]) {
130 V8_INLINE size_t hash_value(T* const& v) {
131 return hash_value(bit_cast<uintptr_t>(v));
135 V8_INLINE size_t hash_value(std::pair<T1, T2> const& v) {
142 V8_INLINE size_t operator()(T const& v) const { return hash_value(v); }
149 return ::v8::base::hash_value(v); \
170 return ::v8::base::hash_value(v);