From: Olivier Schwander <olivier.schwander@chadok.info>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] convertion between OCaml Big_int and C
Date: Wed, 13 Oct 2010 16:48:30 +0200 [thread overview]
Message-ID: <20101013144829.GB28174@pomerol.lix.polytechnique.fr> (raw)
In-Reply-To: <AANLkTiknKCHowb3HQaLwJ62-+ZWhXWKg+uFQG7v3PJQ_@mail.gmail.com>
Le 13 Oct 2010 10:26, Jianzhou Zhao a écrit:
> I am not sure if this is a reasonable question. Does OCaml already
> have functions that do convertion between arbitrary-precision integers
> big_int in OCaml and any representation of large intergers in C? The
> implementation of big_int (otherlibs/num/big_int.*) uses nat
> (otherlibs/num/nat.*). Nat is a customized allocation (in C) as a list
> of native integers to represent arbitrary-precision. So converting
> big_int into C seems possible to me.
It seems you should have a look at the numerix library or at the OCaml
binding for GMP. I never used any of them so I cannot guaranty there are
really working (there are not a lot of references to them) but I think
they are more likely to be usable on both OCaml and C side.
Cheers,
Olivier
next prev parent reply other threads:[~2010-10-13 15:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-13 14:26 Jianzhou Zhao
2010-10-13 14:48 ` Olivier Schwander [this message]
2010-10-13 16:01 ` [Caml-list] " Jianzhou Zhao
2010-10-13 16:11 ` Olivier Schwander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101013144829.GB28174@pomerol.lix.polytechnique.fr \
--to=olivier.schwander@chadok.info \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox