Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks for BitOperations #1264

Merged
merged 2 commits into from
Apr 4, 2020

Conversation

kunalspathak
Copy link
Member

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