about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-02-01 18:35:51 +0000
committervarkor <github@varkor.com>2018-02-01 18:35:51 +0000
commite34c31bf02eb0f0ff4dd43ae72e0eae53f2ac519 (patch)
treec34982b69b6abcab93be85bb1e42a6e180487962 /src/rustllvm/RustWrapper.cpp
parent90eb44a5897c39e3dff9c7e48e3973671dcd9496 (diff)
downloadrust-e34c31bf02eb0f0ff4dd43ae72e0eae53f2ac519.tar.gz
rust-e34c31bf02eb0f0ff4dd43ae72e0eae53f2ac519.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions