the.bay.news

Create `BigInt` directedly from MPZ pointer

Julia Programming Language
Create `BigInt` directedly from MPZ pointer
I have some FFI code that interfaces with another library, and the target library has GNU multiprecision integers. Is it possible to create a BigInt directly from such a multiprecision integer pointer? The default constructor for BigInt is hidden, so I cannot construct a BigInt from limbs directly. julia/base/gmp.jl at 6d172b025e4befc4d274d9fbc9339917a8a86b65 · JuliaLang/julia · GitHub mutable struct BigInt <: Signed alloc::Cint size::Cint d::Ptr{Limb} function BigInt(; nbits::...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.