diff options
author | mread <qt-info@nokia.com> | 2011-10-06 14:07:29 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-10-06 15:38:37 (GMT) |
commit | 51ed77637a6001f66805e8091ce8616d8f2530db (patch) | |
tree | f003f4be14bc08c96d57424511812a27cb6a45da /doc/src/snippets/code/doc_src_unix-signal-handlers.cpp | |
parent | bf69c7e0af67ec877da4fee244386e538fa1c01d (diff) | |
download | Qt-51ed77637a6001f66805e8091ce8616d8f2530db.zip Qt-51ed77637a6001f66805e8091ce8616d8f2530db.tar.gz Qt-51ed77637a6001f66805e8091ce8616d8f2530db.tar.bz2 |
Removing accidental use of double instead of qreal from QLine
QLine contained a number of places where conversions and calculations
were done as double where qreal should have been used instead. This
is caused by the use of raw floating point literals. The fix is to
construct the literals as qreal. The angle conversions are simplified
to reduce the risk of a growing loss of precision from this change.
On Symbian, where qreal is float, this gives a 5-10% performance
improvement to the affected functions, as tested by a new benchmark
test. The auto tests pass, these contain precision tests which indicates
that there is no significant loss of precision with this change.
On Windows, where qreal is double, this has no significant effect on
performance.
Task-number: QTBUG-4894
Reviewed-by: Shane Kearns
Diffstat (limited to 'doc/src/snippets/code/doc_src_unix-signal-handlers.cpp')
0 files changed, 0 insertions, 0 deletions