about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-02-02 16:29:23 +0800
committerkennytm <kennytm@gmail.com>2018-02-02 22:48:49 +0800
commit7c6380cdcf60269bd11457eb00e8d18f4f6955f6 (patch)
tree18c289173179b5d2e9d4051009774421ba42dd32 /src/rustllvm/RustWrapper.cpp
parent5edeff31305c36a440ca8482043ad52e6f14b0ed (diff)
parente34c31bf02eb0f0ff4dd43ae72e0eae53f2ac519 (diff)
downloadrust-7c6380cdcf60269bd11457eb00e8d18f4f6955f6.tar.gz
rust-7c6380cdcf60269bd11457eb00e8d18f4f6955f6.zip
Rollup merge of #47919 - varkor:to_degrees-precision, r=rkruppe Use constant for 180/π in to_degrees The current `f32|f64.to_degrees` implementation uses a division to calculate `180/π`, which causes a loss of precision. Using a constant is still not perfect (implementing a maximally-precise algorithm would come with a high performance cost), but improves precision with a minimal change. As per the discussion in #29944, this fixes #29944 (the costs of improving the precision further would not outweigh the gains).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions