Hi, This is ok to check in.
Zoltan 2008/4/11 Jonathan Chambers <[EMAIL PROTECTED]>: > Hello, > Inspired by the patch for an SSE2 implementation of Abs > (http://permalink.gmane.org/gmane.comp.gnome.mono.patches/111238), I tried > Sqrt. This is only my 2nd JIT patch and my first involving an SSE intrinsic > so any reviews would be appreciated. I see about a 14% speedup using the > following benchmark (with N=1000000000): > > using System; > > class Program > { > static void Main(string[] args) > { > int count = int.Parse(args[0]); > double d = 1.0; > for (int i = 0; i < count;i++) > { > d = Math.Sqrt(i); > } > Console.WriteLine(d); > } > } > > I ran it 10 times and get average time of: > > Orig > 30.5517s > > SSE > 26.1512s > > Code is contributed under MIT/X11 > > Thanks, > Jonathan > > > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list > > _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list