[D-runtime] core.bitop.bsr

Alex Rønne Petersen xtzgzorex at gmail.com
Sun Jul 8 21:00:27 PDT 2012


On Mon, Jul 9, 2012 at 5:57 AM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> Is there any reason that Phobos can't assume that core.bitop.bsr is defined?
> It's not versioned at all, so as far as I can tell, it will always exist. But
> for some reason std.utf.strideImpl currently checks for whether core.bitop.bsr
> is defined. I'd prefer to remove dead code like that. Does anyone know why it
> _wouldn't_ be dead code (i.e. why core.bitop.bsr wouldn't be defined)?

It is always defined in DMD, GDC, and LDC. Just kill whatever code
thinks it might not exist.

Regards,
Alex


More information about the D-runtime mailing list