From: Michael Hoisie <hoisie@berkeley.edu>
Cc: yminsky@gmail.com, Caml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Counting bits in a big_int
Date: Tue, 11 May 2004 21:19:12 -0700 [thread overview]
Message-ID: <20040511211912.01ed66a0@phirelord> (raw)
In-Reply-To: <891bd3390405112022194630a8@mail.gmail.com>
If you have any arbitrary big_int, n, wouldn't the number of bits be equal to 2^x, where x is the number such that 2^x >= n?
So, if you have 100 (1100100), then the number of bits would be 7, because 2^7>=100.
Is this what you mean?
-Michael Hoisie
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-05-12 4:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-12 3:22 Yaron Minsky
2004-05-12 4:19 ` Michael Hoisie [this message]
[not found] ` <16547.8441.559944.112854@gargle.gargle.HOWL>
[not found] ` <891bd3390405130427180c36d6@mail.gmail.com>
[not found] ` <16547.27869.60461.270873@gargle.gargle.HOWL>
2004-05-15 2:53 ` Yaron Minsky
2004-05-15 11:14 ` Markus Mottl
2004-05-15 20:19 ` Yaron Minsky
2004-05-16 0:51 ` skaller
2004-05-16 7:30 ` Xavier Leroy
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=20040511211912.01ed66a0@phirelord \
--to=hoisie@berkeley.edu \
--cc=caml-list@inria.fr \
--cc=yminsky@gmail.com \
/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