We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ccall
1 parent fd1c6fd commit 2e26583Copy full SHA for 2e26583
base/irrationals.jl
@@ -253,7 +253,7 @@ function irrational(sym, val, def)
253
bigconvert = isa(def,Symbol) ? quote
254
function Base.BigFloat(::Irrational{$qsym}, r::MPFR.MPFRRoundingMode=Rounding.rounding_raw(BigFloat); precision=precision(BigFloat))
255
c = BigFloat(;precision=precision)
256
- ccall(($(string("mpfr_const_", def)), :libmpfr),
+ ccall(($(string("mpfr_const_", def)), Base.MPFR.libmpfr),
257
Cint, (Ref{BigFloat}, MPFR.MPFRRoundingMode), c, r)
258
return c
259
end
stdlib/Random/src/generation.jl
@@ -80,7 +80,7 @@ function _rand!(rng::AbstractRNG, z::BigFloat, sp::SamplerBigFloat, ::CloseOpen0
80
randbool = _rand!(rng, z, sp)
81
z.exp = 0
82
randbool &&
83
- ccall((:mpfr_sub_d, :libmpfr), Int32,
+ ccall((:mpfr_sub_d, Base.MPFR.libmpfr), Int32,
84
(Ref{BigFloat}, Ref{BigFloat}, Cdouble, Base.MPFR.MPFRRoundingMode),
85
z, z, 0.5, Base.MPFR.ROUNDING_MODE[])
86
z
@@ -91,7 +91,7 @@ end
91
function _rand!(rng::AbstractRNG, z::BigFloat, sp::SamplerBigFloat, ::CloseOpen01{BigFloat},
92
::Nothing)
93
_rand!(rng, z, sp, CloseOpen12(BigFloat))
94
- ccall((:mpfr_sub_ui, :libmpfr), Int32, (Ref{BigFloat}, Ref{BigFloat}, Culong, Base.MPFR.MPFRRoundingMode),
+ ccall((:mpfr_sub_ui, Base.MPFR.libmpfr), Int32, (Ref{BigFloat}, Ref{BigFloat}, Culong, Base.MPFR.MPFRRoundingMode),
95
z, z, 1, Base.MPFR.ROUNDING_MODE[])
96
97
0 commit comments