diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 02:29:14 +0100 |
commit | 38764943e5fc61c424c018068dc7f6790dddf147 (patch) | |
tree | 65a0f5a00c91436b30e580f16365557437d61da7 /include/evolver.h | |
parent | 0e7b2e49585e3725736ae380cbd2dfb28fea5093 (diff) |
Format repass.
Diffstat (limited to 'include/evolver.h')
-rw-r--r-- | include/evolver.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/include/evolver.h b/include/evolver.h index 457cd9a..26c7d6a 100644 --- a/include/evolver.h +++ b/include/evolver.h @@ -10,27 +10,34 @@ #ifndef SALIS_EVOLVER_H #define SALIS_EVOLVER_H -void _sal_evo_init(void); -void _sal_evo_quit(void); -void _sal_evo_load_from(FILE *file); -void _sal_evo_save_into(FILE *file); - -/** Get address where the last cosmic ray landed. +/** +* Get address where the last cosmic ray landed. * @return Last address changed by a cosmic ray */ SALIS_API uint32 sal_evo_get_last_changed_address(void); -/** Get amount of random numbers generated during the last simulation cycle. +/** +* Get amount of random numbers generated during the last simulation cycle. * @return Number of calls to the random number generator during the last cycle */ SALIS_API uint32 sal_evo_get_calls_on_last_cycle(void); -/** Access the internal state of the XOR-Shift random number generator. +/** +* Access the internal state of the XOR-Shift random number generator. * @param state_index Index of one of the 32 bit state-blocks [0-4] * @return State of the 32 bit block */ SALIS_API uint32 sal_evo_get_state(uint8 state_index); + +/******************************* +* PRIVATES * +*******************************/ + +void _sal_evo_init(void); +void _sal_evo_quit(void); +void _sal_evo_load_from(FILE *file); +void _sal_evo_save_into(FILE *file); void _sal_evo_randomize_at(uint32 address); void _sal_evo_cycle(void); |