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?
using System;
using Mono.Simd;

namespace simd
{
	class SimdReflectionTest
	{
		public static void Main (string[] args)
		{
			
			Console.WriteLine(SimdRuntime.AccelMode);
			Console.WriteLine(typeof(SimdRuntime).GetProperty("AccelMode").GetValue(null,null));
			
			if (SimdRuntime.AccelMode != (AccelMode) typeof(SimdRuntime).GetProperty("AccelMode").GetValue(null,null)) {
				Console.WriteLine("SimdRuntime.AccelMode != (AccelMode) typeof(SimdRuntime).GetProperty(\"AccelMode).GetValue(null,null)");
			}
		}
	}
}

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to