From: Jianzhou Zhao <jianzhou@seas.upenn.edu>
To: caml-list@yquem.inria.fr
Subject: convertion between OCaml Big_int and C
Date: Wed, 13 Oct 2010 10:26:44 -0400 [thread overview]
Message-ID: <AANLkTiknKCHowb3HQaLwJ62-+ZWhXWKg+uFQG7v3PJQ_@mail.gmail.com> (raw)
Hi All,
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.
Thanks.
--
Jianzhou
next reply other threads:[~2010-10-13 14:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-13 14:26 Jianzhou Zhao [this message]
2010-10-13 14:48 ` [Caml-list] " Olivier Schwander
2010-10-13 16:01 ` 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=AANLkTiknKCHowb3HQaLwJ62-+ZWhXWKg+uFQG7v3PJQ_@mail.gmail.com \
--to=jianzhou@seas.upenn.edu \
--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