about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2024-08-24 22:29:39 -0500
committerTrevor Gross <tmgross@umich.edu>2025-05-18 16:43:13 +0000
commit6fc60b8b0493027cc966d4911688f0735bfb329d (patch)
tree4ed191557c6dfab684a377259e443e929969dedb /compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs
parent7205fc537d0fe8c3c2560b313e54fcb91ab6f3d1 (diff)
downloadrust-6fc60b8b0493027cc966d4911688f0735bfb329d.tar.gz
rust-6fc60b8b0493027cc966d4911688f0735bfb329d.zip
float: Add `f16` parsing and printing
Use the existing Lemire (decimal -> float) and Dragon / Grisu algorithms
(float -> decimal) to add support for `f16`. This allows updating the
implementation for `Display` to the expected behavior for `Display`
(currently it prints the a hex bitwise representation), matching other
floats, and adds a `FromStr` implementation.

In order to avoid crashes when compiling with Cranelift or on targets
where f16 is not well supported, a fallback is used if
`cfg(target_has_reliable_f16)` is not true.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/coverageinfo/mod.rs')
0 files changed, 0 insertions, 0 deletions