aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-09-26 10:09:36 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-09-26 10:09:36 +0000
commit2a63631abd8b2b88a2e27dd1270ec6cd4040c1d3 (patch)
treed7d27d4527f9cb75e477bd457d112293743c32e8 /clang/lib/CodeGen/CodeGenModule.cpp
parent00eecb88a4e07c0633822f38cff17143583fdae6 (diff)
downloadllvm-2a63631abd8b2b88a2e27dd1270ec6cd4040c1d3.zip
llvm-2a63631abd8b2b88a2e27dd1270ec6cd4040c1d3.tar.gz
llvm-2a63631abd8b2b88a2e27dd1270ec6cd4040c1d3.tar.bz2
[BranchProbability] Manually round the floating point output.
llvm::format compiles down to snprintf which has no defined rounding for floating point arguments, and MSVC has implemented it differently from what the BSD libcs and glibc do. Try to emulate the glibc rounding behavior to avoid changing tests. While there simplify code a bit and move trivial methods inline. llvm-svn: 248665
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions