Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add f16, f128 #333

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add f16, f128 #333

wants to merge 2 commits into from

Conversation

usamoi
Copy link

@usamoi usamoi commented Aug 26, 2024

integer_decode is implemented for f128 by truncating the radix to its 64 most significant bits. See #98.

src/lib.rs Outdated
Comment on lines 20 to 21
#![cfg_attr(feature = "f16", feature(f16))]
#![cfg_attr(feature = "f128", feature(f128))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not keen on maintaining for unstable features in this crate, so we're probably going to be blocked here until the language and standard library stabilize these new floats.

At that point, I think we'll probably want to have detection in the build script to enable it automatically, and Cargo features can force that on -- like we used to for has_i128.

src/float.rs Outdated Show resolved Hide resolved
src/float.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants