Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16b7ff73 authored by Yangster-mac's avatar Yangster-mac
Browse files

Use android reinterpret hash for float as it is faster.

Test: statsd test
Change-Id: I593edac1d7dcd0c5e84195602b42b7c6c3072a38
parent 5d108838
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ android::hash_t hashDimension(const HashableDimensionKey& value) {
                                                             fieldValue.mValue.str_value)));
                break;
            case FLOAT: {
                float floatVal = fieldValue.mValue.float_value;
                hash = android::JenkinsHashMixBytes(hash, (uint8_t*)&floatVal, sizeof(float));
                hash = android::JenkinsHashMix(hash,
                                               android::hash_type(fieldValue.mValue.float_value));
                break;
            }
        }