#include <stddef.h>
#include <stdint.h>
#include <cstddef>
#include <cstring>
#include <functional>
#include <type_traits>
#include <utility>
#include "src/base/base-export.h"
#include "src/base/bits.h"
#include "src/base/macros.h"
Go to the source code of this file.
◆ V8_BASE_BIT_SPECIALIZE_BIT_CAST
#define V8_BASE_BIT_SPECIALIZE_BIT_CAST |
( |
| type, |
|
|
| btype ) |
Value: template <> \
struct bit_equal_to<type> { \
V8_INLINE bool operator()(type lhs, type rhs)
const { \
return base::bit_cast<btype>(lhs) == base::bit_cast<btype>(rhs); \
} \
}; \
template <> \
struct bit_hash<type> { \
V8_INLINE size_t operator()(type v)
const { \
hash<btype> h; \
return h(base::bit_cast<btype>(v)); \
} \
};
Definition at line 343 of file hashing.h.
◆ V8_BASE_BIT_SPECIALIZE_TRIVIAL
#define V8_BASE_BIT_SPECIALIZE_TRIVIAL |
( |
| type | ) |
|
Value: template <> \
struct bit_equal_to<type> : public std::equal_to<type> {}; \
template <> \
struct bit_hash<type> : public hash<type> {};
Definition at line 326 of file hashing.h.
◆ V8_BASE_HASH_VALUE_SIGNED
#define V8_BASE_HASH_VALUE_SIGNED |
( |
| type | ) |
|
Value: V8_INLINE size_t hash_value(
signed type v) { \
return hash_value(base::bit_cast<unsigned type>(v)); \
}
Definition at line 217 of file hashing.h.
◆ V8_BASE_HASH_VALUE_TRIVIAL
#define V8_BASE_HASH_VALUE_TRIVIAL |
( |
| type | ) |
|
Value: V8_INLINE size_t hash_value(type v) {
return static_cast<size_t>(v); }
Definition at line 198 of file hashing.h.