From: Damien Doligez <damien.doligez@inria.fr>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Random questions
Date: Thu, 3 Dec 2009 17:01:18 +0100 [thread overview]
Message-ID: <BDF3A00A-F3D0-42BC-BB26-6CBE75D1881E@inria.fr> (raw)
In-Reply-To: <op.u4czjxj9l4bj1b@lri4-139>
On 2009-12-03, at 12:00, AUGER wrote:
> (* preliminary function: negate_minus_1 : int -> int : n |-> -n-1 *)
> let negate_minus_1 = (lor) (-(max_int/2)-1) (* or inline the
> constant *)
You probably mean this:
let negate_minus_1 = (lxor) (-1);;
-- Damien
next prev parent reply other threads:[~2009-12-03 16:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 10:59 Daniel Bünzli
2009-12-03 11:00 ` [Caml-list] " AUGER
2009-12-03 14:48 ` Daniel Bünzli
2009-12-03 15:11 ` AUGER
2009-12-03 16:01 ` Damien Doligez [this message]
2009-12-03 16:45 ` AUGER
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=BDF3A00A-F3D0-42BC-BB26-6CBE75D1881E@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@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