about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-26 23:45:18 +0100
committerGitHub <noreply@github.com>2022-01-26 23:45:18 +0100
commitfaf2b7f45593112cdb000783663624ba071a74d4 (patch)
treebcd605b173d3a287579f82b39e4a593334345e00 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parenta7f375789bab1a4e4a291c963081a8ca7d2b6bd7 (diff)
parente0bcf771d6e670988a3d4fdc785ecd5857916f10 (diff)
downloadrust-faf2b7f45593112cdb000783663624ba071a74d4.tar.gz
rust-faf2b7f45593112cdb000783663624ba071a74d4.zip
Rollup merge of #90247 - newpavlov:duration_float_fract, r=nagisa
Improve Duration::try_from_secs_f32/64 accuracy by directly processing exponent and mantissa

Closes: #90225

The methods now implement direct processing of exponent and mantissa, which should result in the best possible conversion accuracy (modulo truncation, i.e. float value of 19.995 ns will be represented as 19 ns).
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions