build: add some build options to customise library functionality

This commit is contained in:
2026-04-01 19:02:04 +01:00
parent 6b04920d29
commit 467c13e161
5 changed files with 49 additions and 22 deletions
+2
View File
@@ -217,6 +217,7 @@ static uint64_t genrand64_int64(struct fx_random_ctx *context)
#endif
}
#if FX_ENABLE_FLOATING_POINT == 1
/* generates a random number on [0,1]-real-interval */
double genrand64_real1(struct fx_random_ctx *context)
{
@@ -235,6 +236,7 @@ double genrand64_real3(struct fx_random_ctx *context)
return ((genrand64_int64(context) >> 12) + 0.5)
* (1.0 / 4503599627370496.0);
}
#endif
struct fx_random_algorithm z__fx_gen_mt19937 = {
.gen_name = "mt19937",