[Mono-dev] mono.simd

Robert Jordan robertj at gmx.net
Mon Aug 23 07:16:34 EDT 2010

On 23.08.2010 04:53, Jerry Maine - KF5ADY wrote:
> I found a discrepency in Mono.Simd.SimdRuntime.AccelMode and it is
> equivalent access by reflection. I believe this is a bug.
> Attached is a test for this. I believe there are more cases of this in
> Mono.Simd
> Any ideas on how to fix this?

Assuming that you want to fix this in mono: you could implement
Mono.Simd.SimdRuntime.AccelMode as an icall. This will assure
that both fast path and slow path would yield the same value.

Assuming you want to fix your own code: wrap
Mono.Simd.SimdRuntime.AccelMode with your own method/property
and reflection-invoke this wrapper:

static class Foo
	public static AccelMode GetAccelMode()
		return Mono.Simd.SimdRuntime.AccelMode;


More information about the Mono-devel-list mailing list