[Mono-dev] Patch for Math.cs

Dennis Hayes denisraytek at yahoo.com
Sun Mar 4 18:57:04 EST 2007


This is a minor clean up of Math.cs.
  Basicly, in the methods that use MidpointRounding Mode, it moves the check for a valid mode to the end of the method.
   
  Since the mode is checked in the method, doing this eliminates the extra check. Also, the check should never fail, since an enum is being passed in. This will make the code a little faster.
   
  I don't have svn access setup, so I need someone to check this in also.
   
  I did not include any tests, because this should not have added or modifyed anything testable.
   
  Should I do anything elseor do anything differently?
  Would this be better as a switch?
  Thanks,
  Dennis

 
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070304/16a93b3b/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: math.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070304/16a93b3b/attachment.pl 


More information about the Mono-devel-list mailing list