Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
musm authored Aug 17, 2017
1 parent d55857f commit 9d5d113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/gmp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mpn_popcount(d::Ptr{Limb}, s::Integer) = ccall((:__gmpn_popcount, :libgmp), Culo
mpn_popcount(a::BigInt) = mpn_popcount(a.d, abs(a.size))

function tdiv_qr!(x::BigInt, y::BigInt, a::BigInt, b::BigInt)
ccall((:__gRef{BigInt}div_qr, :libgmp), Void, (Ref{BigInt}, Ref{BigInt}, Ref{BigInt}, Ref{BigInt}), x, y, a, b)
ccall((:__gmpz_tdiv_qr, :libgmp), Void, (Ref{BigInt}, Ref{BigInt}, Ref{BigInt}, Ref{BigInt}), x, y, a, b)
x, y
end
tdiv_qr(a::BigInt, b::BigInt) = tdiv_qr!(BigInt(), BigInt(), a, b)
Expand Down

0 comments on commit 9d5d113

Please sign in to comment.