MCPcopy Create free account
hub / github.com/TeXworks/texworks / hash

Function hash

modules/QtPDF/src/PDFPageTile.cpp:25–35  ·  view source on GitHub ↗

Taken from Qt 4.7.2 sources ( /src/corelib/tools/qhash.cpp)

Source from the content-addressed store, hash-verified

23
24// Taken from Qt 4.7.2 sources (<Qt>/src/corelib/tools/qhash.cpp)
25static uint hash(const uchar *p, int n)
26{
27 uint h = 0;
28
29 while (n--) {
30 h = (h << 4) + *p++;
31 h ^= (h & 0xf0000000) >> 23;
32 h &= 0x0fffffff;
33 }
34 return h;
35}
36
37inline uint qHash(const double &d)
38{

Callers 2

qHashFunction · 0.85
hashForFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected