value range propagation for _bitwise_ OR
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 12 20:00:16 PDT 2010
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.
-Steve
More information about the Digitalmars-d
mailing list