private static int Main() { int returnVal = Pass; if (VectorHWAccelTest <float> .VectorHWAccel(1, 2, (float)(1 + 2)) != Pass) { returnVal = Fail; } return(returnVal); }
private static int Main() { if (Vector.IsHardwareAccelerated) { // The test harness will check to ensure that this method was compiled, which it will // not be if IsHardwareAccelerated returns false. return(VectorHWAccelTest <float> .VectorHWAccel2(1, 2, (float)(1 + 2))); } return(Pass); }