diff options
| author | Philipp Krones <hello@philkrones.com> | 2020-07-13 15:59:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-13 15:59:41 +0200 |
| commit | 75d43aac73df6086ab9566a39d5ea7afe70d89c9 (patch) | |
| tree | cf42a96da202f8cede53da3ab17c4646000ffb28 /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | 7d611d92240d43d9a04cf8db0cb4fb5690f8249c (diff) | |
| parent | 3065201eb3a0c4976de7ef5b5b924afde1b18325 (diff) | |
| download | rust-75d43aac73df6086ab9566a39d5ea7afe70d89c9.tar.gz rust-75d43aac73df6086ab9566a39d5ea7afe70d89c9.zip | |
Rollup merge of #5443 - thiagoarrais:issue-2040, r=flip1995
Some accuracy lints for floating point operations This will add some lints for accuracy on floating point operations suggested by @clarfon in #2040 (fixes #2040). These are the remaining lints: - [x] x.powi(2) => x * x - [x] x.logN() / y.logN() => x.logbase(y) - [x] x.logbase(E) => x.log() - [x] x.logbase(10) => x.log10() - [x] x.logbase(2) => x.log2(). - [x] x * PI / 180 => x.to_radians() - [x] x * 180 / PI => x.to_degrees() - [x] (x + 1).log() => x.log_1p() - [x] sqrt(x * x + y * y) => x.hypot(y) changelog: Included some accuracy lints for floating point operations
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
