Skip to content

Commit

Permalink
Change order of doclinks in sieve_segment!
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed May 10, 2024
1 parent fd8b066 commit f693d84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,20 @@
// This is used since there is currently no way to be generic over types that can do arithmetic at compile time.
type Underlying = u32;

mod prime_counting;
mod prime_generation;
mod integer_math;
mod other_prime;
mod primality_checking;
mod prime_cache;
mod prime_counting;
mod prime_generation;
mod sieving;

pub use prime_counting::count_primes;
pub use prime_generation::{primes, primes_geq, primes_lt, GenerationError};
pub use integer_math::isqrt;
pub use other_prime::{next_prime, previous_prime};
pub use primality_checking::is_prime;
pub use prime_cache::Primes;
pub use prime_counting::count_primes;
pub use prime_generation::{primes, primes_geq, primes_lt, GenerationError};
pub use sieving::{sieve, sieve_geq, sieve_lt, SieveError};

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion src/sieving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ pub const fn sieve_geq<const N: usize, const MEM: usize>(
Ok(ans)
}

/// Call [`sieve_lt`] and [`sieve_geq`], and automatically compute the memory requirement of the sieve.
/// Call [`sieve_geq`] or [`sieve_lt`], and automatically compute the memory requirement of the sieve.
///
/// Computes the value of the const generic `MEM` as `isqrt(upper_limit) + 1` for [`sieve_lt`]
/// and as `isqrt(lower_limit) + 1 + N` for [`sieve_geq`].
Expand Down

0 comments on commit f693d84

Please sign in to comment.