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

Decode decimal types in one shot #824

Open
mborland opened this issue Jan 24, 2025 · 0 comments
Open

Decode decimal types in one shot #824

mborland opened this issue Jan 24, 2025 · 0 comments

Comments

@mborland
Copy link
Member

For example in frexp10 we have this:

auto num_exp {num.biased_exponent()};
auto num_sig {num.full_significand()};
detail::normalize<T>(num_sig, num_exp);

This involves decoding the combination field twice. We should be able to combine these into a single operation called to_components that returns the already existing structure of components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant