Aliquot Sequence Research  2.0
Compute properties of the sum-of-proper-divisors function.
Data Fields
sieve_worker_t Struct Reference

Worker which holds state about a single thread running the sieve. More...

#include <moewsmoews_sieve.h>

Collaboration diagram for sieve_worker_t:
Collaboration graph
[legend]

Data Fields

const sieve_config_tcfg
 
size_t seg_start
 
uint64_t * sigma_buf
 
uint64_t * q_buf
 
ssize_t last_sieve_standard
 
bool squared
 
bool * is_prime_buf
 

Detailed Description

Worker which holds state about a single thread running the sieve.

Field Documentation

◆ cfg

sieve_worker_t::cfg

Initalized sieve_config_t struct.

◆ is_prime_buf

sieve_worker_t::is_prime_buf

This buffer stores whether odd numbers in range (seg_start, seg_start + seg_len) are prime. Function moews_sieve_odd_standard() must have been run previously.

◆ last_sieve_standard

sieve_worker_t::last_sieve_standard

Start of the last standard sieving call, -1 if has not been run.

◆ q_buf

sieve_worker_t::q_buf

Buffer used internally by sieve.

◆ seg_start

sieve_worker_t::seg_start

Start of the segment to be sieved.

◆ sigma_buf

sieve_worker_t::sigma_buf

Buffer to be filled will sigma(n) for odd n in range (seg_start, seg_start + seg_len).

◆ squared

sieve_worker_t::squared

Was the last sieve block run with moews_sieve_odd_squared()?


The documentation for this struct was generated from the following file: