summaryrefslogtreecommitdiffhomepage
path: root/stc/cmap.h
AgeCommit message (Collapse)Author
2020-07-30Got rid of cmapentry_ii. use cmap_ii_entry_t and cmap_ii_entry_destroy().Tyge Løvset
2020-07-30Reverted an bug introduced last commit.Tyge Løvset
2020-07-30Small tweak.Tyge Løvset
2020-07-29Renamed crandom.h to crand.h + Changed API. Renamed coptget.h to copt.h.Tyge Løvset
2020-07-28Lowercase namingTyge Løvset
2020-07-27Changed crandom.h APITyge Løvset
2020-07-27API CHANGES: Made types all lower case. E.g.: CMap_<tag> => cmap_<tag>, ↵Tyge Løvset
CList_<tag> => clist_<tag>. Note: CStr => cstr_t, CBitset => cbitset_t
2020-07-27Renamed cmap_xx_at() to cmap_xx_insert(). Does insert like c++ ↵Tyge Løvset
std::map::insert(), rust HashMap::insert() Updated cstr_hashRaw() to djb2() algorithm.
2020-07-26Replaced lowBiasHash with fibonacciHash32 / fibonacciHash64. Added ↵Tyge Løvset
<container>_<tag>_init(void) function.
2020-07-25Reverted CArr to CArray again.Tyge Løvset
2020-07-24More cleanup, added alias cmap_get <-> cmap_find.Tyge Løvset
2020-07-24Added <container>_<tag>_init variables; Fixed prime.c and list.c examples.Tyge Løvset
2020-07-24Updated CBitset (renamed from CBitVec too). Added ↵Tyge Løvset
<container>_<tag>_init(void) functions.
2020-07-23Added generic c_push(.., items) to push a list of items onto the containers.Tyge Løvset
2020-07-22Fixed cmap_xx_clear()Tyge Løvset
2020-07-22Renamed CArray to CArr. Renamed cmap_xx_get() to cmap_xx_find(). Changed ↵Tyge Løvset
_front() and _back() signatures.
2020-07-211. Added initializers for containers *_from(). 2. Changed reserve(): size ↵Tyge Løvset
now means how many there actually can be filled with.
2020-07-21Cleaned up MAP API. Added 2 examles.Tyge Løvset
2020-07-21Reordered declare_CMap/CSet argument list.Tyge Løvset
Fixed examples.
2020-07-17Minors.Tyge Løvset
2020-07-17Renamed chash.h to cmap.h and added cset.hTyge Løvset
2020-06-21Renamed files and classes: cmap -> chash, copt -> coptionTylo
2020-06-20Renamed CMap to CHash, to reflect that it now supports both (unordered) Map ↵Tylo
and Set. Second arg in declare_CHash() should be 'set' or 'map'. Refactored copt.h to be more consistent with other types. Added cvector_make(size, fillvalue) constructor.
2020-06-18Added cmap_eraseBucket, and split cmap_erase in two.Tylo
Cleanup white spaces and comments/examples.
2020-06-16Removed glm. Some opt. on hash.Tylo
2020-06-15Fixed including standard include files.Tylo
2020-05-29Refactored. Added cmap_find and cmap_insert pair of functions. Renamed types.Tylo
2020-04-30Added missing #include <malloc.h>, and redefined default equal.Tyge
2020-04-30Nothing.Tyge
2020-04-30Added example in cmap.hTyge
2020-04-30Refactored: made hashx into its own array (8 bit from 16 bit), instead of ↵Tyge
part of the bucket. Good speed increase and lower memory usage.
2020-04-30Added KHASH in benchmark, tuned cmap.Tyge
2020-04-29Making code clearer, and update benchmark.cTyge
2020-04-28Fixed error on GCC when using -O2 and -O3 optimization. Added volatile to ↵Tyge
hash function input.
2020-04-27Changed parameter sequence for main code gen macros.Tyge
2020-04-26More refactor.Tyge
2020-04-26Renamed c_defaultDestroy to c_noDestroyTyge
2020-04-26Refactored: Uses STC_API to control extern or static inline. Define ↵Tyge
STC_HEADER or STC_IMPLEMENTATION when using extern linkage. Fixed a few bugs.
2020-04-23Removes Warning for C99 usage in VS when compiled as C++.Tyge
2020-04-23Fixed bugs with use of "Raw" types, and updated EXAMPLE.md accordingly.Tyge
2020-04-20Fixed and redesigned iterators.Tyge
2020-04-19Moved gl math to glm folderTyge
Added clist - single linked list with fast sorting. Refactoring.
2020-04-15- Added cmat3, cmat4, cquatTyge
- Changed include folder name to stc - library name - Bug fix, memory leak in map values when overwritten. - Improvements in API
2020-04-15Renamed folder.Tyge