commit | 3687b2f8321ad2ddfc0dfbf51547fbdcc53491ad | [log] [tgz] |
---|---|---|
author | fmeawad@chromium.org <fmeawad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Aug 06 06:21:18 2014 |
committer | fmeawad@chromium.org <fmeawad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Aug 06 06:21:18 2014 |
tree | 4636403132db2c4fccf76cb3737907b4f05335f2 | |
parent | b55d82b903f41d485eb30c37baaa7a516e660fd2 [diff] |
Make QPCValueToMicroseconds faster in case the value is less than 44 bits If the QPC value is less than 44 bits, it is safe to multiply by a 20 bits value (1000000) without risking overflow. This optimization reduces the call time by half. BUG=158234 Review URL: https://codereview.chromium.org/429743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287704 0039d316-1c4b-4281-b951-d872f2087c98