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

Rename bigint's setbit, tstbit, combit, and clrbit methods #22775

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Jul 19, 2023

Renames both the procedure name and the argument name to bigint's *bit methods (#17735 and #22008)

Summary of changes

  • rename setbit(bit_index: integral) to setBit(idx: integral)
  • rename clrbit(bit_index: integral) to clearBit(idx: integral)
  • rename tstbit(bit_index: integral) to getBit(idx: integral)
  • rename combit(bit_index: integral) to toggleBit(idx: integral)
  • add documentation for these 4 functions
    • includes links to the underlying GMP function's documentation
  • updated tests as needed

New tests

  • adds test/deprecated/BigInteger/deprecateBitFunctions.chpl

Testing

  • paratest with futures
  • paratest + gasnet
  • built and checked docs

[Reviewed by @bmcdonald3]

closes #17735
closes #22008
closes cray/chapel-private#5095

@jabraham17 jabraham17 merged commit 8e47f96 into chapel-lang:main Jul 20, 2023
7 checks passed
@jabraham17 jabraham17 deleted the bigint-bit-functions branch July 20, 2023 15:37
jabraham17 added a commit that referenced this pull request Jan 11, 2024
Removes almost all of the remaining BigInteger deprecations

This PR removes the deprecations from the following PRs I authored
- #22775
- #22888/#22774
- #22818
- #22794
- #22788
- #22121

I also removed the remaining deprecations done by Yash Raj
- #18855
- #18827

I moved one test out of the deprecated/BigInteger directory,
`bigint_getlimbs.chpl`, since its not a deprecation test and actually
checks functionality.


Testing
- [x] paratest without comm
- [x] paratest with comm
- [x] built docs and checked them

[Reviewed by @ShreyasKhandekar]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants