commit | 074db923263a486cdca781078133a72888d98c26 | [log] [tgz] |
---|---|---|
author | fmeawad@chromium.org <fmeawad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Aug 06 15:21:18 2014 +0900 |
committer | Qijiang Fan <fqj@google.com> | Thu Jun 04 17:16:28 2020 +0900 |
tree | 41620b7c24cc59fb8656adfaef6b581019fec982 | |
parent | 4883c97f126981b4fb71cf7ce0ca3b55f60f4607 [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 CrOS-Libchrome-Original-Commit: 3687b2f8321ad2ddfc0dfbf51547fbdcc53491ad