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

special: Special functions #85

Open
github-actions bot opened this issue May 28, 2022 · 0 comments
Open

special: Special functions #85

github-actions bot opened this issue May 28, 2022 · 0 comments
Assignees
Labels
feature tracker Issue tracked by bot

Comments

@github-actions
Copy link

On 2022-05-28 @recmo wrote in 1ec2e50 “Recognize new tags”:

Special functions
Factorial
Extended GCD and LCM
https://en.wikipedia.org/wiki/Euler%27s_totient_function
https://en.wikipedia.org/wiki/Carmichael_function
https://en.wikipedia.org/wiki/Jordan%27s_totient_function
Feature parity with GMP:
https://gmplib.org/manual/Integer-Functions.html#Integer-Functions

use crate::Uint;

// FEATURE: Special functions
// * Factorial
// * Extended GCD and LCM
// * https://en.wikipedia.org/wiki/Euler%27s_totient_function
// * https://en.wikipedia.org/wiki/Carmichael_function
// * https://en.wikipedia.org/wiki/Jordan%27s_totient_function
// * Feature parity with GMP:
//   * https://gmplib.org/manual/Integer-Functions.html#Integer-Functions

impl<const BITS: usize, const LIMBS: usize> Uint<BITS, LIMBS> {
    /// Returns `true` if and only if `self == 2^k` for some `k`.
    #[must_use]
    pub fn is_power_of_two(self) -> bool {

From src/special.rs:3

@github-actions github-actions bot added feature tracker Issue tracked by bot labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature tracker Issue tracked by bot
Projects
None yet
Development

No branches or pull requests

1 participant