Talk:Find first and last set bit of a long integer: Difference between revisions

Line 7:
: Well, you need to realize that it's an Algol zero, which can be anything you want really. --[[User:Ledrug|Ledrug]] 03:20, 9 December 2011 (UTC)
:: (hrrmmmph ... depends if its a man or boy compiler then does it) I would expect that 'set bit' should be defined. If it means a bit that is set to one then the example makes no sense. If it means set to zero, well then it does. But someone needs to say. --[[User:Dgamey|Dgamey]] 03:44, 9 December 2011 (UTC)
::: Er sorry, I was just poking fun at Algol. The "0 with a set bit" was more likely evidence that stuff were not thought through when the task was posted, as can be seen in the whole page of discussion below. Set bit of course means 1 here, and the task is now changed to number bits from 0 up, where the Algol example currently show integer 0 as having set bit at position -1, which is sensible, so I guess this issue is no more. --[[User:Ledrug|Ledrug]] 03:57, 9 December 2011 (UTC)
 
Can you clarify? For it would be an interesting aside to see a host code sample that is not for [[wp:Two's complement|Two's complement]]. [[User:NevilleDNZ|NevilleDNZ]] 04:39, 8 December 2011 (UTC)
Anonymous user