-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
added float32 schubfach algorithm; wip #18155
Conversation
@@ -0,0 +1,451 @@ | |||
## Copyright 2020 Alexander Bolz |
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.
as i was doing in #18008, can you add a readme.md somewhere (maybe lib/vendor/readme.md
in which we can add future external dependencies under lib/vendor) to show:
- the git repo involved, the files that were copied, and the hash at which the repo was cloned
- the c2nim command used (i'm assuming smthg like
c2nim --cpp --keepBodies -o:lib/system/schubfach.nim $Drachennest/src/schubfach_32.cc
) - ideally, split in 2 commits, 1 with raw c2nim output (maybe marked
[wip]
so git bisect can learn to skip it), and one with the manual modifications, that way it's more reproducible/transparent and easier to update from upstream if needed
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.
Good ideas, will do it maybe later. But I consider remaining bugs to be our own, not related to dragonbox/schubfach, just like we avoided certain TLSF bugs by porting over to Nim.
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 was referring to not just bugs but performance improvements, not that they can't be ported over again
Good ideas, will do it maybe later.
=> 282d61b
not defined(js) and defined(nimHasDragonBox): | ||
import schubfach | ||
|
||
proc nimFloat32ToStr(f: float32): string {.compilerproc.} = |
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.
how about adding float32 overloads for addFloat
, $
, writeFloatToBuffer
* added float32 schubfach algorithm; wip * fixes nim-lang#18418
No description provided.