Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kunalspathak
Copy link
Contributor

Add benchmarks for following APIs in System.Numerics.BitOperations :

  • LeadingZeroCount
  • TrailingZeroCount
  • Log2

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI fails because the tested API was added in .NET Core 3.0

@kunalspathak Could you please exclude this file from compilation for older frameworks? You can do this here:

<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' &lt; '3.1')">
<Compile Remove="runtime\Math\Functions\Double\FusedMultiplyAdd.cs" />

Otherwise than that, looks good to me. Thank you!

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@adamsitnik adamsitnik merged commit 07a9972 into dotnet:master Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants