Indirectly update to libm 0.2#335
Merged
workingjubilee merged 1 commit intorust-lang:masterfrom Jul 27, 2023
Merged
Conversation
Unfortunately, `libm 0.2` remove the `F32Ext` and `F64Ext` extension traits, which makes it harder to choose the different methods. However, this was already dealt with in rust-num/num-traits#144 for `Float`, so we can piggy-back on that here, no longer using `libm` directly. Close: rust-lang#294
Contributor
Author
|
Let's try another way! This is heavily inspired by cuviper patch here: dimforge/alga#93 Tested on multiple arches here: https://koji.fedoraproject.org/koji/taskinfo?taskID=75866870 (with tests disabled for arm and i686). |
Member
|
I will review this patch when CI has been fixed. |
|
Is there a reason for not merging this? If so, wouldn't it be possible to use libm 0.2 directly like this: |
Member
|
The answer is simply that I found the thought of writing up an entire new CI workflow exhausting, so I didn't do it, and then someone was kind enough to break ground on it. The CI still isn't fixed, but it is much closer, and I did some followup work to make it almost-functional. It's mostly missing the Android targets. |
Member
|
Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unfortunately,
libm 0.2remove theF32ExtandF64Extextensiontraits, which makes it harder to choose the different methods. However,
this was already dealt with in rust-num/num-traits#144 for
Float, sowe can piggy-back on that here, no longer using
libmdirectly.Close: #294