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

optimized ryu version for 'long doubles'? ( real 80-bit figures, not 'fake-long' ) - enhancement proposal - #212

Open
newbie-02 opened this issue May 13, 2022 · 0 comments

Comments

@newbie-02
Copy link

newbie-02 commented May 13, 2022

hello @ all,
Can anyone code such a thing, an 'ld2s'?
I have managed with some newbie difficulties to use d2s in another program. Since I also need a solution for 80-bit long doubles I have to use 'generic128' so far and this is really slow :-( .
I was thinking if a similar optimized solution like d2s is also possible for 80-bit values, and as e.g. the significant ( mantissa ) with 64 bit fits into a uint64_t it could possibly be straightforward, but also have pitfalls if ryu needs free bits in the figures, or bigger lookup tables would be necessary and become too big ... ??? .
Alas I'm lacking programming experience and e.g. understanding for the math details, use of intrinsics and lookup tables. I think all the necessary information is in the comments in the code and in https://dl.acm.org/doi/pdf/10.1145/3296979.3192369, but I don't have the time to work through it.
If someone can do this, code an optimized 'ld2s'?, he could do me and possibly many other people a big favor ... and! improve ryu.
( against doubletes: i have placed a similar request at https://codereview.stackexchange.com/questions/276496/seeking-performance-improvement-for-a-clean-c-coded-fp-value-to-string-convers )

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

No branches or pull requests

1 participant