diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-06-30 09:18:03 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-06 10:55:01 (GMT) |
commit | cbc229081a9df67a577b4bea61ad6aac52d470cb (patch) | |
tree | 36e40064b36ee8611859afd661bc5d8f80a3b205 /qmake/meta.h | |
parent | e3f3ced70f80369439200b7d7bc3e4e11222c81f (diff) | |
download | Qt-cbc229081a9df67a577b4bea61ad6aac52d470cb.zip Qt-cbc229081a9df67a577b4bea61ad6aac52d470cb.tar.gz Qt-cbc229081a9df67a577b4bea61ad6aac52d470cb.tar.bz2 |
Faster quaternion multiplications.
Use the known factorization trick to speed-up quaternion multiplication.
Now we need only 9 floating-point multiplications, instead of 16 (but
at the cost of extra additions and subtractions).
Callgrind shows that the function now takes 299 instructions instead of
318 instructions, which is not a big win. However I assume the speed-up
has a better effect for mobile CPU, where multiplications are more
expensive.
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'qmake/meta.h')
0 files changed, 0 insertions, 0 deletions