Skip to content

[Style]: Move BigInteger extensions from Utility to BigIntegerExtensions#3916

Merged
shargon merged 3 commits intoneo-project:masterfrom
Wi1l-B0t:style.move-bigint-extensions
May 6, 2025
Merged

[Style]: Move BigInteger extensions from Utility to BigIntegerExtensions#3916
shargon merged 3 commits intoneo-project:masterfrom
Wi1l-B0t:style.move-bigint-extensions

Conversation

@Wi1l-B0t
Copy link
Contributor

@Wi1l-B0t Wi1l-B0t commented May 1, 2025

Description

Just move BigInteger extensions from Utility to BigIntegerExtensions.

  • Optimization (the change is only an optimization)
  • Style (the change is only a code style for better maintenance or standard purpose)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static int BitCount(byte w)
Copy link
Member

Choose a reason for hiding this comment

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

BitCount has changed, this should be done in a different pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, Submit this simpified implementation later.

@Wi1l-B0t Wi1l-B0t force-pushed the style.move-bigint-extensions branch from 7412acf to becb238 Compare May 2, 2025 07:51
@shargon
Copy link
Member

shargon commented May 4, 2025

Why coverage decresed?

@shargon shargon merged commit e53a894 into neo-project:master May 6, 2025
6 of 7 checks passed
NGDAdmin pushed a commit that referenced this pull request May 6, 2025
* optimize: show native contract net active yet

* Update src/Neo.CLI/CLI/MainService.Native.cs

* style: move BigInteger extensions from Utility to BigIntegerExtensions (#3916)

---------

Co-authored-by: Shargon <shargon@gmail.com>
@Wi1l-B0t Wi1l-B0t deleted the style.move-bigint-extensions branch May 7, 2025 14:16
@Wi1l-B0t Wi1l-B0t mentioned this pull request May 7, 2025
14 tasks
shargon added a commit that referenced this pull request May 12, 2025
* [`Optimize`]: show native contract is active or not (#3922)

* optimize: show native contract net active yet

* Update src/Neo.CLI/CLI/MainService.Native.cs

* style: move BigInteger extensions from Utility to BigIntegerExtensions (#3916)

---------

Co-authored-by: Shargon <shargon@gmail.com>

* Avoid empty snupkg in release (#3925)

* v3.8.1 (#3930)

* Revert workflow branch

---------

Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
Co-authored-by: Shargon <shargon@gmail.com>
cschuchardt88 pushed a commit to cschuchardt88/neo that referenced this pull request Jun 8, 2025
* [`Optimize`]: show native contract is active or not (neo-project#3922)

* optimize: show native contract net active yet

* Update src/Neo.CLI/CLI/MainService.Native.cs

* style: move BigInteger extensions from Utility to BigIntegerExtensions (neo-project#3916)

---------

Co-authored-by: Shargon <shargon@gmail.com>

* Avoid empty snupkg in release (neo-project#3925)

* v3.8.1 (neo-project#3930)

* Revert workflow branch

---------

Co-authored-by: Will <201105916+Wi1l-B0t@users.noreply.github.com>
Co-authored-by: Shargon <shargon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants