[D-runtime] core.bitop.bsr

Iain Buclaw ibuclaw at ubuntu.com
Mon Jul 9 00:47:05 PDT 2012


On 9 July 2012 04:57, 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)?
>

bsr is handled as an internal builtin function here at gdc.

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D-runtime mailing list