[Mono-dev] Incoming changes to Mono.Simd
StApostol
stapostol at gmail.com
Thu Dec 4 06:32:08 EST 2008
On Thu, Dec 4, 2008 at 1:17 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
>
> 2008/12/4 StApostol <stapostol at gmail.com>
>
>> One last question: if one builds a custom version of Mono.Simd (or even
>> integrates it in another assembly), will the runtime still be able to
>> resolve and accelerate the operations?
>>
>
> The runtime identifies simd intrinsics by their name and assembly and so
> does for their methods. This means if you want, for example, to use the mono
> linker to put everything in a single assembly you'll need to customize the
> runtime itself, a trivial change, but still.
>
> if we move to use extension methods the solution to use Mono.Simd under C#
> 2.0 is to directly call the class with those methods.
> For example:
>
> Vector4ui a,b,c;
> c = a.AddWithSaturation (b); //with extension methods.
> c = VectorOperations.AddWithSaturation (a, b);//will work just fine under
> C# 2.0
>
> AFAIK, the only real issue with extension methods is that Mono.Simd will
> require C# 3.0 to be compiled, but one can still fully consume it under C#
> 2.0 as a missing System.Core won't be an issue.
>
> Cheers,
> Rodrigo
>
Thanks for the clarifications, Mono.Simd looks perfect for our purposes
then.
It would be nice if there was a way to use the assembly linker with
Mono.Simd (a manifest?), but that's a secondary concern at best.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081204/c9aed3bf/attachment-0001.html
More information about the Mono-devel-list
mailing list