Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Sep 7, 2023
1 parent ee6fb57 commit 079bfc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions include/primesieve/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ void primesieve_skipto(primesieve_iterator* it, uint64_t start, uint64_t stop_hi
/**
* Used internally by primesieve_next_prime().
* primesieve_generate_next_primes() fills (overwrites) the primes
* array with the next few primes (~ 1000) that are larger than the
* array with the next few primes (~ 2^10) that are larger than the
* current largest prime in the primes array or with the
* primes >= start if the primes array is empty.
* Note that the current largest prime in the primes array can be
* accessed using primes[size-1] and the current smallest prime can be
* accessed using primes[0].
* Note that this function also updates the i & size member variables
* of the primesieve_iterator struct. The size of the primes array
* varies, but it is usually close to 2^10.
* If an error occurs primesieve_iterator.is_error is set to 1
* and the primes array will contain PRIMESIEVE_ERROR.
*/
Expand All @@ -137,9 +137,9 @@ void primesieve_generate_next_primes(primesieve_iterator*);
* array with the next few primes ~ O(sqrt(n)) that are smaller than
* the current smallest prime in the primes array or with the
* primes <= start if the primes array is empty.
* Note that the current largest prime in the primes array can be
* accessed using primes[size-1] and the current smallest prime can be
* accessed using primes[0].
* Note that this function also updates the i & size member variables
* of the primesieve_iterator struct. The size of the primes array
* varies, but it is ~ O(sqrt(n)).
* If an error occurs primesieve_iterator.is_error is set to 1
* and the primes array will contain PRIMESIEVE_ERROR.
*/
Expand Down
14 changes: 7 additions & 7 deletions include/primesieve/iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ struct iterator

/// Used internally by next_prime().
/// generate_next_primes() fills (overwrites) the primes array with
/// the next few primes (~ 1000) that are larger than the current
/// the next few primes (~ 2^10) that are larger than the current
/// largest prime in the primes array or with the primes >= start
/// if the primes array is empty.
/// Note that the current largest prime in the primes array can be
/// accessed using primes[size-1] and the current smallest prime can
/// be accessed using primes[0].
/// Note that this method also updates the i & size member variables
/// of this primesieve::iterator struct. The size of the primes array
/// varies, but it is usually close to 2^10.
///
void generate_next_primes();

Expand All @@ -109,9 +109,9 @@ struct iterator
/// the next few primes ~ O(sqrt(n)) that are smaller than the
/// current smallest prime in the primes array or with the
/// primes <= start if the primes array is empty.
/// Note that the current largest prime in the primes array can be
/// accessed using primes[size-1] and the current smallest prime can
/// be accessed using primes[0].
/// Note that this method also updates the i & size member variables
/// of this primesieve::iterator struct. The size of the primes array
/// varies, but it is ~ O(sqrt(n)).
///
void generate_prev_primes();

Expand Down

0 comments on commit 079bfc0

Please sign in to comment.