How do I write __simd(void16*, void16) ?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 10 06:35:54 PDT 2014


On Fri, 10 Oct 2014 09:09:09 -0400
Etienne via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> On 2014-10-10 9:01 AM, ketmar via Digitalmars-d-learn wrote:
> >    import core.simd;
> >    import gcc.builtins;
> >    void main () {
> >      float4 a, b;
> >      auto tmp = __builtin_ia32_mulps(a, b); // a*b
> >    }
> >
> > i don't know what the hell this means, but at least it accepts types
> > from core.simd. ;-) so i assume that other such builtins will accept
> > other types too.
> 
> Nice! Nobody knows simd but they all know how to make it work. Go
> figure =)
btw, i'm ready to do tests with 32-bit gdc if necessary. you can
mail/jabber me (the address is the same ;-) if you need.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141010/01acd9ff/attachment.sig>


More information about the Digitalmars-d-learn mailing list