instruction set module

Jarrett Billingsley kb3ctd2 at yahoo.com
Wed Oct 11 13:27:38 PDT 2006


"nobody_" <spam at spam.spam> wrote in message 
news:egj832$1ka6$1 at digitaldaemon.com...
> >
>> Do you mean something like std.intrinsic: 
>> http://www.digitalmars.com/d/phobos/std_intrinsic.html ?
>
> Yup somthing like that :)
> But those aren't all instructions.. I think  ;)

Well, what instructions are you looking to use?  This theoretical module 
would also be quite platform-dependent, if you're looking to use things like 
SSE3 or something..

If you'd like, you could write your own functions to wrap the assembly 
instructions you'd like to use, like:

// useless function
void Move(int* dest, int* src)
{
    asm
    {
        mov EBX, src;
        mov EAX, [EBX];
        mov EBX, dest;
        mov [EBX], EAX;
    }
}






More information about the Digitalmars-d-learn mailing list