start on SIMD documentation

Manu turkeyman at gmail.com
Fri Jan 13 17:46:43 PST 2012


On 14 January 2012 03:42, Walter Bright <newshound2 at digitalmars.com> wrote:

> On 1/13/2012 3:51 PM, Andrei Alexandrescu wrote:
>
>> On 1/13/12 4:57 PM, Walter Bright wrote:
>>
>>> On 1/13/2012 2:31 PM, Andrei Alexandrescu wrote:
>>>
>>>> People will want to pass a variable for op. Would that work?
>>>>
>>>
>>> It'll currently fail miserably - it has to be a constant. Otherwise, we
>>> have runtime code generation. While not impossible, it is a large
>>> increase in scope.
>>>
>>
>> Then probably the operation should be simd!opcode(arguments). If a
>> function is
>> intrinsic it shouldn't have special syntactic rights.
>>
>
> You're right, I'm just not too thrilled about generating hundreds of
> template instantiations.
>

Is that expensive somehow?
Surely they all just boil down to a call to the intrinsic anyway?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120114/2f43abe6/attachment.html>


More information about the Digitalmars-d mailing list