Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Add f16 and f128 - #114607

Closed
tgross35 wants to merge 7 commits into
rust-lang:masterfrom
tgross35:f16-f128-impl
Closed

tgross35 wants to merge 7 commits into
rust-lang:masterfrom
tgross35:f16-f128-impl

Conversation

@tgross35

@tgross35 tgross35 commented Aug 8, 2023 •

Copy link
Copy Markdown
Member

Preliminary implementation of rust-lang/rfcs#3453 (still a work in progress)

This introduces four new features:

  • f16: lang feature, basic support for 16-bit floating point numbers
  • f128: same as above for 128-bit
  • f16_math: libs feature, gates math that relies on intrinsics
  • f128_math: libs feature, same as above

The math features are gated separately because it seems like LLVM has some bugs with the intrinsics. F16 should work but f128 is completely unusable llvm/llvm-project#44744.

I have found this calculator helpful if anyone is validating the data: http://weitz.de/ieee/

Tracking issue: #116909

Edit: I have started merging this in portions, see #116909 (comment)

r? ghost
@rustbot label +T-lang +T-libs-api

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc F-f16_and_f128 `#![feature(f16)]`, `#![feature(f128)]` O-unix Operating system: Unix-like rla-silenced Silences rust-log-analyzer postings to the PR it's added on. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team T-libs Relevant to the library team, which will review and decide on the PR/issue. T-libs-api [DEPRECATED; DO NOT USE] WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.