<div class="gmail_quote">On 18 October 2011 12:12, Don <span dir="ltr"><<a href="mailto:nospam@nospam.com">nospam@nospam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">You mean bsr and bsf.</div></div>
Unfortunately, there are some big problems with them. What is bsr(0) ?<br></blockquote><div><br></div><div>True ;) .. but that's why the API needs to be defined and standardised.</div><div>On PowerPC it returns 32 (or 64), and the x86 version returns 2 values, the position, and also a bool telling you if it was zero or not (useful for loop termination)<br>
</div><div>I think all hardware that I've seen is easy to factor into the win32 intrinsic api.</div></div>