diff options
author | John McCall <rjmccall@apple.com> | 2009-12-24 12:16:56 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-12-24 12:16:56 +0000 |
commit | e6212ace38d85cdea0c2decad25a49460047ec15 (patch) | |
tree | e216120acbc48264a8622a0eef60c78e90e66e48 /llvm/lib/Support/StringRef.cpp | |
parent | 122c8313ffb9f9e349c97aa985caecab2b892b6b (diff) | |
download | bcm5719-llvm-e6212ace38d85cdea0c2decad25a49460047ec15.tar.gz bcm5719-llvm-e6212ace38d85cdea0c2decad25a49460047ec15.zip |
Substantially optimize APFloat::toString() by doing a single large divide to
cut the significand down to the desired precision *before* entering the
core divmod loop. Makes the overall algorithm logarithmic in the exponent.
There's still a lot of room for improvement here, but this gets the
performance back down to acceptable-for-diagnostics levels, even for
long doubles.
negligible, even on long doubles.
llvm-svn: 92130
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions