value range propagation for _bitwise_ OR

"Jérôme M. Berger" jeberger at free.fr
Tue Apr 13 10:43:30 PDT 2010


Steven Schveighoffer wrote:
> Steven Schveighoffer Wrote:
> 
>> I'll have to double check, I thought I copied your code verbatim (I did switch around the arguments to be minA, maxA, minB, maxB to fit my test harness, and I changed the uint_32_t to uint).  I'll check tomorrow at work where the computer I used to test is.
>>
> 
> I think I see the issue, I was using an older version of your highbit, at some point you changed it, but didn't repeat it in this solution, so I searched for it on the newsgroup and found your first version.  That differs from later versions you posted, but I can't find where you identified there was a bug.
> 
> I'll test again tomorrow, but it looks like that probably accounts for the problem.
> 
> The version I was using: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=108788
> 
> The later version: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=108855
> 
> It looks like in that second post that Ali had the same problem I did.
> 
> Next time, you should include your whole code each time, especially parts you changed.
> 
	Oups, I hadn't noticed that I sent two different versions (except
for the C<->D translation). Sorry about that.

	Note that there is no bug: both versions are correct. The first one
uses 1-based indexes, while the second uses 0-based indexes an
processes 0 differently.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100413/3638ffa3/attachment.pgp>


More information about the Digitalmars-d mailing list