Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Remove the additional check from Math.Exp()#3533

Merged
jkotas merged 1 commit intodotnet:masterfrom
tijoytom-zz:master
May 5, 2017
Merged

Remove the additional check from Math.Exp()#3533
jkotas merged 1 commit intodotnet:masterfrom
tijoytom-zz:master

Conversation

@tijoytom-zz
Copy link
Contributor

Math.Exp() to match dotnet/coreclr#4847.

@tijoytom-zz tijoytom-zz changed the title Remove the additional check from Remove the additional check from Math.Exp() May 5, 2017
@tijoytom-zz
Copy link
Contributor Author

Here is the list that you pointed out
@tannergooding

  1. Exp is doing additional checks (https://github.com/tijoytom/corert/blob/1fc641a152963474aa35ccc1ae760036bf01292b/src/System.Private.CoreLib/src/System/Math.cs#L248)

  2. Abs(float) should be calling fabsf not fabs (https://github.com/tijoytom/corert/blob/1fc641a152963474aa35ccc1ae760036bf01292b/src/System.Private.CoreLib/src/System/Math.cs#L388). This could probably be done as part of the work to properly expose System.MathF.

  3. Round is doing something other than copysign: https://github.com/tijoytom/corert/blob/1fc641a152963474aa35ccc1ae760036bf01292b/src/System.Private.CoreLib/src/System/Math.cs#L163. At first glance, it looks like it should be equivalent, but I didn't actually validate that it is correct for all the various edge cases.

For (3) i am hoping corefx tests whould notice the difference if any , i will check it as part of properly exposing MathF.

@jkotas jkotas merged commit c80854a into dotnet:master May 5, 2017
@tannergooding
Copy link
Member

:shipit:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants