| 86 | static bool CompareScalars(Scalar u, Scalar v) { return u == v; } |
| 87 | |
| 88 | static hash_t ComputeHash(const Scalar& value) { |
| 89 | // Generic hash computation for scalars. Simply apply the string hash |
| 90 | // to the bit representation of the value. |
| 91 | |
| 92 | // XXX in the case of FP values, we'd like equal values to have the same hash, |
| 93 | // even if they have different bit representations... |
| 94 | return ComputeStringHash<AlgNum>(&value, sizeof(value)); |
| 95 | } |
| 96 | }; |
| 97 | |
| 98 | template <typename Scalar, uint64_t AlgNum = 0, typename Enable = void> |
nothing calls this directly
no outgoing calls
no test coverage detected