|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Exact integer segmented-sieve marking operator. More...


Go to the source code of this file.
Classes | |
| struct | SimSegmentedSieveMarkOperatorConfig |
| Configuration for in-place segmented sieve marking. More... | |
Typedefs | |
| typedef struct SimSegmentedSieveMarkOperatorConfig | SimSegmentedSieveMarkOperatorConfig |
| Configuration for in-place segmented sieve marking. | |
Functions | |
| SimResult | sim_add_segmented_sieve_mark_operator (struct SimContext *context, const SimSegmentedSieveMarkOperatorConfig *config, size_t *out_index) |
| Register an in-place segmented-sieve marking operator. | |
| SimResult | sim_segmented_sieve_mark_config (struct SimContext *context, size_t operator_index, SimSegmentedSieveMarkOperatorConfig *out_config) |
| Copy the current segmented-sieve mark configuration from a registered operator. | |
| SimResult | sim_segmented_sieve_mark_update (struct SimContext *context, size_t operator_index, const SimSegmentedSieveMarkOperatorConfig *config) |
| Replace or renormalize a segmented-sieve mark configuration. | |
Exact integer segmented-sieve marking operator.
Configuration for in-place segmented sieve marking.
The operator reads an exact integer candidate field and clears entries in the flag field when candidate > prime_value && candidate % prime_value == 0. The flag field may be exact integer or f64; in both cases active entries are preserved until a composite hit clears them to zero.
| SimResult sim_add_segmented_sieve_mark_operator | ( | struct SimContext * | context, |
| const SimSegmentedSieveMarkOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register an in-place segmented-sieve marking operator.
| context | Simulation context that will own the operator. | |
| config | Optional mark configuration; NULL selects normalized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_segmented_sieve_mark_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimSegmentedSieveMarkOperatorConfig * | out_config | ||
| ) |
Copy the current segmented-sieve mark configuration from a registered operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_segmented_sieve_mark_operator(). | |
| [out] | out_config | Receives the normalized configuration. |
| SimResult sim_segmented_sieve_mark_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimSegmentedSieveMarkOperatorConfig * | config | ||
| ) |
Replace or renormalize a segmented-sieve mark configuration.
Passing NULL for config keeps the current configuration and reapplies normalization. A successful update refreshes symbolic state and invalidates the scheduler plan.
| context | Simulation context containing the operator. |
| operator_index | Index of the mark operator to update. |
| config | Optional replacement configuration. |