caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jianzhou Zhao <jianzhou@seas.upenn.edu>
To: caml-list@yquem.inria.fr
Subject: OCaml Int64 <-> C int64_t
Date: Wed, 18 Aug 2010 13:28:07 -0400	[thread overview]
Message-ID: <AANLkTin3BJ=p9hmCMGBAc6H76_b0fPCo6+Qktws6CtzG@mail.gmail.com> (raw)

Hi,

To convert between OCaml Int64 and C Integer, I think uint64_t or
int64_t can be the target C type. Int64_val is the macro converting
OCaml value to int64, I failed to find the macro for the other
direction under ./byterun. ./byterun/ints.c defines operations on
int64, caml_copy_int64(I64_of_intnat(..)) seems to be working for such
conversion? But mlvalues.h does not declare them to use. How can I
convert int64 to value?

Thanks
-- 
Jianzhou


             reply	other threads:[~2010-08-18 17:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 17:28 Jianzhou Zhao [this message]
2010-08-18 17:36 ` [Caml-list] " Mathias Kende
2010-08-18 18:16   ` Jianzhou Zhao
2010-08-18 18:47     ` Mathias Kende

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='AANLkTin3BJ=p9hmCMGBAc6H76_b0fPCo6+Qktws6CtzG@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;
as well as URLs for NNTP newsgroup(s).