From: vincent.diemunsch@gmail.com
Subject: Re: Efficient Bit Vector Manipulation.
Date: Sat, 16 May 2015 05:06:44 -0700 (PDT)
Date: 2015-05-16T05:06:44-07:00 [thread overview]
Message-ID: <56f60f78-e4a2-4c6d-975a-4542972eb1e9@googlegroups.com> (raw)
In-Reply-To: <mj58h1$fc7$1@dont-email.me>
Le vendredi 15 mai 2015 18:58:15 UTC+2, Jeffrey R. Carter a écrit :
Thank you Jeffrey for your response,
> Given your need to extract sequences of bits as integers, I'd say using an
> Unsigned_* type from Interfaces would probably be best. This also has the
> advantage of being endian independent.
Yes, I'll do that.
>
> Finding the most-significant 1 bit can be done with a binary search. Shifting
> and masking out the B and E values is then fairly simple.
It is not as simple as I hoped ! But ok, it is not difficult. Just a bit boring and
prone to errors.
Kind regards,
Vincent
next prev parent reply other threads:[~2015-05-16 12:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 12:07 Efficient Bit Vector Manipulation Vincent
2015-05-15 12:48 ` Colin Paul de Gloucester
2015-05-16 17:12 ` Dennis Lee Bieber
2015-05-15 16:26 ` Niklas Holsti
2015-05-16 11:58 ` vincent.diemunsch
2015-05-15 16:58 ` Jeffrey R. Carter
2015-05-16 12:06 ` vincent.diemunsch [this message]
2015-05-17 13:55 ` robin.vowels
2015-05-18 7:53 ` Stefan.Lucks
2015-05-18 11:43 ` vincent.diemunsch
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox