You can import core.bitop and it will work. I submitted a patch to have these 
be real intrinsics though and it has t been applied yet. 

Sent from my iPhone

On Jul 13, 2010, at 1:41 PM, Steve Schveighoffer <[email protected]> wrote:

> 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
> 
> 
> 
> 
> _______________________________________________
> phobos mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/phobos
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to