summaryrefslogtreecommitdiffhomepage
path: root/include/stc/crandom.h
AgeCommit message (Collapse)Author
2023-04-28Removed crandom.h and altnames.h. Housholding.Tyge Løvset
2023-02-05Some last minute changes: reverted mostly the c_extern from last commit.Tyge Løvset
Renamed c_ARGSV(sv) macro to c_SVARG(sv). Both available.
2023-02-05Fixed linking parameters i_extern.Tyge Løvset
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-27(Reverted) c_COMPOUND() to c_LITERAL().Tyge Løvset
2023-01-19Finish last commit. Most safe function macros are now preferred lowercase, ↵Tyge Løvset
whereas flow control macros (c_FOREACH, ..) are preferred uppercase.
2023-01-04Bump to 2023Tyge Løvset
2022-12-19Renames:Tyge Løvset
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
2022-11-22Fixes of -Wconversion warnings (not examples).Tyge Løvset
2022-10-28Renamed semi-internal macro (used for c++ compability) c_make => c_init.Tyge Løvset
2022-08-06c_apply() deprecated: replaced with c_forarray() macro. Updated and improved ↵Tyge Løvset
README.md docs.
2022-07-28VERSION 3.8 RC. Added cregex with "final" API + docs. README.md updated with ↵Tyge Løvset
links to cregex, coption. crandom.h: fixed "stc64_with_seq doesn't use seq argument #31" thanks to funny-falcon. Removed deprecated funcs. Added tags for v3.6 and v3.7.
2022-07-15cmap: No longer uses c_umul128. If `i_size` is defined by user, table is ↵Tyge Lovset
power of 2 length and bit-masking used for mapping hash to index.
2022-06-20Small addition and warning removed in cregex.c. Else refactoring/cleanup.Tyge Løvset
2022-06-01Reverted to default static linkage of non-templated symbols (cstr, csview, ↵Tyge Løvset
..), as it gives smaller executables and is convenient for small applications. (no need to define i_implement when functions is used in one translaton unit only).
2022-06-01Converted all files with DOS line endings to LINUX.Tyge Løvset
2022-06-01Added src/libstc.c which implements all non-templated functions (e.g. from ↵Tyge Løvset
cstr, csview, cbits, crandom), but also clist.h mergesort. - Linking with this object file eliminates the need to define i_implement in one file for these types (or i_extern for non-templated functions in templated container, currently only clist.h)
2022-05-30Done refactoring:Tyge Løvset
- Non-templated types (cstr, csview, cbits, crandom) have no longer default static linking. Now i_header is defined, i.e. files are as headers only. ==> Define `i_implement` before file inclusion. Still possible to do static linkage by defining `i_static` before inclusion or global STC_STATIC. - Templated containers still have static linkage by default. - Renamed csview_substr(), csview_slice() to csview_substr_ex(), csview_slice_ex(). Added simpler inlined csview_substr(), csview_slice().
2022-04-28_i_implement moved to user-level template parameter as i_implement. Removed ↵Tyge Løvset
i_opt flag c_implement. Removed OLD include/alt/clist.h
2022-04-18crandom.h: Renamed *_init(..) functions to *_new(..). Old names are kept but ↵Tyge Løvset
deprecated.
2022-04-18Renamed stc64_random() => crandom(), stc64_srandom(seed) => csrandom(seed). ↵Tyge Løvset
Kept old names for backward comp.
2022-02-13Refactored crandom. Removed 32-bit version. Made normal dist inline - does ↵Tyge Løvset
not require math lib if not used. Added stc64_randomf()
2022-01-03Bump to 2022.Tyge Løvset
2022-01-03"gcc/clang -O2 -Wall -std=c99 -pedantic" compiles examples with no warnings. ↵Tyge Løvset
More cleanups.
2022-01-02Simplified and improved linkage configuration. Reorganized crandom.h a bit.Tyge Løvset
May define "i_opt c_shared", or "i_opt c_static" to specify individual container linkage, based on if STC_HEADER is defined, i.e static linkage is default, STC_HEADER defined makes shared symbols default.
2022-01-01Corrected linking macro settings.Tyge Løvset
2021-12-29Removed warnings for MS cl -W2 and clang -pedantic -std=c99. No functional ↵Tyge Løvset
changes.
2021-09-20Added proper fallback for stc64_uniformCamel Coder
2021-09-20Removed stc64_uniform 32-bit fallback, thanks for camel-cdr. Added an ↵Tyge Løvset
unbiased 32-bit version for now as a "replacement".
2021-09-06Some more additions.Tyge Løvset
2021-08-19Maintenance update. Added stc32_rand() to crandom.h, doc fixes and cqueue.h ↵Tyge Løvset
updated to have its own size counter.
2021-07-17Some refactoring.Tyge Lovset
2021-06-19Changed stc64. Similar to sfc64, but a different output functions and 320 ↵Tyge Løvset
bit state (256 mutable). This is equally fast as the previous, but likely better quality because the 16-bit version is good, opposed to previous which failed PractRand.
2021-05-20Moved stc folder into include folder.Tyge Løvset