-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
round() with BigFloat argument #2190
Comments
We have all these fallbacks of the form |
Partially fixed by 0c1a073, but |
@JeffBezanson I think @nolta Maybe Regarding 0c1a073, the new functions use the symbols in gmp whereas the old use gmp_wrapper. The latter is just renaming of functions in gmp and some memory allocation. Wouldn't it be more clean to remove all the renaming from gmp_wrapper.c and just have the memory allocation there? The rest can gmp directly, I think. |
I wonder if we can get rid of gmp_wrapper.c completely. One can always allocate the memory as an array of Uint8s and pass it in. I do that in the wrappers for DSFMT. |
#1887 : previous discussion around removing gmp_wrapper.c |
Fixed by f34c812. |
julia> ceil(BigFloat(2.1))
error: stack overflow
in ceil at math.jl:119
(The last line is repeated many times)
round() also fails in a similar manner; I haven't tested other similar functions.
The text was updated successfully, but these errors were encountered: