This repository was archived by the owner on Apr 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
Add ldexpf16
, ldexpf128
, scalbnf16
, and scalbnf128
#391
Merged
Conversation
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
Edit: done in #392. I cherry picked that commit here but that one should probably merge first. |
13238e7
to
84597eb
Compare
84597eb
to
3d70168
Compare
e6907f5
to
31a58aa
Compare
scalbnf16
and scalbnf128
ldexpf16
, ldexpf128
, scalbnf16
, and scalbnf128
0b59cdc
to
c4eca7d
Compare
c3df336
to
b0e4038
Compare
b1b01c5
to
58775fc
Compare
b0e4038
to
cd3ef7a
Compare
b617507
to
336a6b6
Compare
cd3ef7a
to
b801ddd
Compare
e9d7e6c
to
4d58493
Compare
4d58493
to
c997735
Compare
I think the f16 version is running into the same issue as #419 (comment) (among other issues) so I am just going to drop that for now, keeping only scalbnf128. |
Oh, interesting; the same problem seems to be showing up for the
Testing with the new (unreleased) version of Rug returns 0x00000000000000000000000000000001, so I will just wait for that release. |
7394ee7
to
ca979f9
Compare
ca979f9
to
946f6ec
Compare
|
9fe11d3
to
80b1394
Compare
Use the generic `scalbn` to provide `f16` and `f128` versions, which also work for `ldexp`. This involves a new algorithm for `f16` because the default does not converge fast enough with a limited number of rounds.
cef07af
to
9c93e01
Compare
e307755
to
9c93e01
Compare
tgross35
added a commit
that referenced
this pull request
Apr 18, 2025
Add `ldexpf16`, `ldexpf128`, `scalbnf16`, and `scalbnf128`
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The
scalbn
functions are similar enough that they can easily be made generic. Do so and addf16
andf128
versions.