[Mono-dev] mono.simd

Robert Jordan robertj at gmx.net
Mon Aug 23 14:29:14 EDT 2010


On 23.08.2010 19:24, Jerry Maine wrote:
> Would the c# portion of the patch work on MS .Net?

Dammit! I thought the icall would be ignored by MS.NET because
I took care of not invoking it in this case. But icalls are not
allowed in assemblies != mscorlib under MS.NET.

Unless I'm misguided, the only solution seems to evolve
around adding a branch to

	marshal.cs: mono_marshal_get_runtime_invoke ()

Schematic code:

if (method->klass == "Mono.Simd.SimdRuntime") {
	need_direct_wrapper = TRUE;
}

The flag will instruct this function to create yet another
wrapper around calls to methods of the Mono.Simd.SimdRuntime
class. This additional wrapper lets the runtime take the
fast path even for reflection calls.

Robert



More information about the Mono-devel-list mailing list