qt5base-lts/tests/auto
Marc Mutz c0791ac76e Add qHash() overloads for floating-point types
This implementation is based on GCC's implementation of std::hash<FP>, but only
to the extent of checking for zero before hashing the bits. The bit hasher is
the Qt one; I didn't even look what GCC uses.

The check against 0.0 is mandated by the requirement to have
  \forall x,y: x == y => qHash(x) == qHash(y)
which would be violated for x = 0.0 and y = -0.0 if we only hashed the bits.

Implemented out-of-line to avoid potential FP-comparison warnings, as well
as to be able to use the file-static hash() functions, which gets inlined
unlike qHashBits(), which cannot be.

[ChangeLog][QtCore][QHash/QSet] Allowed to use float, double and long double
as QHash/QSet keys.

Change-Id: I38cec4afb860f17e9f8be7b67544e58b330f8fff
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
2014-02-16 00:18:32 +01:00
..
android Adding CI utilities to Android test script 2013-10-30 11:29:04 +01:00
bic/data
cmake Teach CMake about Qt 5 plugins. 2013-09-10 14:38:18 +02:00
compilerwarnings/data
concurrent QtConcurrent: Workaround GCC bug 58800 in median calculation 2013-12-03 11:45:18 +01:00
corelib Add qHash() overloads for floating-point types 2014-02-16 00:18:32 +01:00
dbus don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
gui Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2014-02-13 09:35:08 +01:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/stable' into dev 2014-02-12 16:28:07 +01:00
opengl Dynamic GL switch on Windows 2014-02-14 10:51:44 +01:00
other Cocoa: Allow frameless NSWindow child QWindows 2014-02-05 23:12:50 +01:00
printsupport QPrinter - Fix Printer Selection option on Windows 2014-02-05 19:34:03 +01:00
shared iOS: Fix compilation of some basic tests 2014-01-17 11:04:43 +01:00
sql Merge remote-tracking branch 'origin/stable' into dev 2014-02-07 13:07:25 +01:00
testlib Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
tools Fix lack of deterministic behavior in moc. 2014-01-22 08:27:50 +01:00
widgets Dynamic GL switch on Windows 2014-02-14 10:51:44 +01:00
xml expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h
qtest-config.h
test.pl