Simple features that I've always missed from C...
Manu
turkeyman at gmail.com
Tue Oct 18 02:43:35 PDT 2011
On 18 October 2011 12:12, Don <nospam at nospam.com> wrote:
> You mean bsr and bsf.
> Unfortunately, there are some big problems with them. What is bsr(0) ?
>
True ;) .. but that's why the API needs to be defined and standardised.
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)
I think all hardware that I've seen is easy to factor into the win32
intrinsic api.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111018/4a067b08/attachment.html>
More information about the Digitalmars-d
mailing list