diff options
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/text/StringHash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/text/StringHash.h b/WebCore/platform/text/StringHash.h index 336dce3..4ab53ad 100644 --- a/WebCore/platform/text/StringHash.h +++ b/WebCore/platform/text/StringHash.h @@ -47,6 +47,9 @@ namespace WebCore { if (aLength != bLength) return false; +#if PLATFORM(ARM) + return memcmp(a->characters(), b->characters(), aLength) == 0; +#else const uint32_t* aChars = reinterpret_cast<const uint32_t*>(a->characters()); const uint32_t* bChars = reinterpret_cast<const uint32_t*>(b->characters()); @@ -59,6 +62,7 @@ namespace WebCore { return false; return true; +#endif } static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); } |