[phobos] std.instrinsic?

Steve Schveighoffer schveiguy at yahoo.com
Tue Jul 13 13:41:32 PDT 2010


Why is the intrinsic module in phobos instead of druntime?

In core.bitop, there's this odd code:



version(D_Ddoc)
{
    /** docs for bsf **/
    int bsf(uint v);

    /** docs for bsr **/
    int bsr(uint v);

    ...
}
else
{
   public import std.intrinsic;
}

????

I want to use bsr in lifetime.d, there's a hand-implemented function in there 
that's much much slower than the bsr instruction.

-Steve



      


More information about the phobos mailing list