Skip to content

Add f16, f128 #333

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

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

Add f16, f128 #333

wants to merge 3 commits into from

Conversation

usamoi
Copy link

@usamoi usamoi commented Aug 26, 2024

  1. integer_decode is implemented for f128 by truncating the radix to its 64 most significant bits. See Float::integer_decode cannot be implemented for quadruple precision floating types. #98.
  2. Because of precision limitations, f128 tests under no_std and libm fail.

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.

@usamoi usamoi force-pushed the master branch 2 times, most recently from c6e7689 to dc38e4d Compare August 31, 2024 02:39
@usamoi usamoi force-pushed the master branch 2 times, most recently from 70e6d69 to 510dfa4 Compare May 31, 2025 16:12
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