-
Notifications
You must be signed in to change notification settings - Fork 235
cleanup: Reuse MinInt
and Int
from libm
in compiler-builtins
#879
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
Conversation
Int
from libm
in compiler-builtins
MinInt
and Int
from libm
in compiler-builtins
CONTRIBUTING.md
Outdated
- To reinterpret an integer as a float use the `f32::from_bits` constructor. The | ||
MUSL code uses the `SET_FLOAT_WORD` macro, or a union, to do this operation. | ||
- You may use other methods from core like `f64::is_nan`, etc. as appropriate. | ||
- Rust does not have hex float literals. This crate provides two `hf16!`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rust does not have hex float literals. This crate provides two `hf16!`, | |
- Rust does not have hex float literals. This crate provides four `hf16!`, |
or just drop the word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly sure why this diff was part of my original PR here, but I think it doesn't apply anymore. Please feel free to send a fix for CONTRIBUTING.md though, a second set of eyes would certainly be welcome :)
Since the two crates are now in the same repo, it is easier to share code. Begin some deduplication with the integer traits.
Includes the following changes: * Enable `__powitf2` on MSVC [1] * Update `CmpResult` to use a pointer-sized return type [2] * Better code reuse between `libm` and `compiler-builtins` [3], [4] * Stop building C versions of `__netf2` [5] since we have our own implementation [1]: rust-lang/compiler-builtins#918 [2]: rust-lang/compiler-builtins#920 [3]: rust-lang/compiler-builtins#879 [4]: rust-lang/compiler-builtins#925 [5]: rust-lang/compiler-builtins#828
Update `compiler-builtins` to 0.1.160 Includes the following changes: * Enable `__powitf2` on MSVC [1] * Update `CmpResult` to use a pointer-sized return type [2] * Better code reuse between `libm` and `compiler-builtins` [3], [4] * Stop building C versions of `__netf2` [5] since we have our own implementation [1]: rust-lang/compiler-builtins#918 [2]: rust-lang/compiler-builtins#920 [3]: rust-lang/compiler-builtins#879 [4]: rust-lang/compiler-builtins#925 [5]: rust-lang/compiler-builtins#828
Rollup merge of #141805 - tgross35:update-builtins, r=tgross35 Update `compiler-builtins` to 0.1.160 Includes the following changes: * Enable `__powitf2` on MSVC [1] * Update `CmpResult` to use a pointer-sized return type [2] * Better code reuse between `libm` and `compiler-builtins` [3], [4] * Stop building C versions of `__netf2` [5] since we have our own implementation [1]: rust-lang/compiler-builtins#918 [2]: rust-lang/compiler-builtins#920 [3]: rust-lang/compiler-builtins#879 [4]: rust-lang/compiler-builtins#925 [5]: rust-lang/compiler-builtins#828
Since the two crates are now in the same repo, it is easier to share
code. Begin some deduplication with the integer traits.