~ubuntu-branches/ubuntu/natty/qtwebkit-source/natty

« back to all changes in this revision

Viewing changes to WebCore/platform/text/StringHash.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2010-07-19 00:38:51 UTC
  • Revision ID: james.westby@ubuntu.com-20100719003851-c8cs9iltwg4drhus
Tags: 2.0~week26-2ubuntu1
* Rename source package to qtwebkit-source.
* Make libqtwebkit-dev provide/replace/conflict libqt4-webkit-dev.
* Add versioned replaces/breaks against the libqt4-webkit* transitional
  packages.
* Build packages with lzma compression.
* Call dh_makeshlibs with "-V".

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
 
55
55
            // FIXME: perhaps we should have a more abstract macro that indicates when
56
56
            // going 4 bytes at a time is unsafe
57
 
#if CPU(ARM) || CPU(SH4)
 
57
#if CPU(ARM) || CPU(SH4) || CPU(SPARC)
58
58
            const UChar* aChars = a->characters();
59
59
            const UChar* bChars = b->characters();
60
 
            for (unsigned i = 0; i != aLength; ++i) {
 
60
            for (unsigned i = 0; i != aLength; ++i)
61
61
                if (*aChars++ != *bChars++)
62
62
                    return false;
63
 
            }
 
63
 
64
64
            return true;
65
65
#else
66
66
            /* Do it 4-bytes-at-a-time on architectures where it's safe */