summaryrefslogtreecommitdiffhomepage
path: root/docs/cmap_api.md
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-07-15 00:19:40 +0200
committerTyge Lovset <[email protected]>2022-07-15 00:19:40 +0200
commit293af54c54a4864f80ad3f9520ad4d2f85723aa1 (patch)
tree638e6dcd113eb0026942c121b09c74d909d22d43 /docs/cmap_api.md
parent839efba934c8623f2dea31e7f8bb2857624c6908 (diff)
downloadSTC-modified-293af54c54a4864f80ad3f9520ad4d2f85723aa1.tar.gz
STC-modified-293af54c54a4864f80ad3f9520ad4d2f85723aa1.zip
cmap: No longer uses c_umul128. If `i_size` is defined by user, table is power of 2 length and bit-masking used for mapping hash to index.
Diffstat (limited to 'docs/cmap_api.md')
-rw-r--r--docs/cmap_api.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md
index a624cfea..bb760b4d 100644
--- a/docs/cmap_api.md
+++ b/docs/cmap_api.md
@@ -22,6 +22,8 @@ See the c++ class [std::unordered_map](https://en.cppreference.com/w/cpp/contain
#define i_hash // hash func i_keyraw*: REQUIRED IF i_keyraw is non-pod type
#define i_eq // equality comparison two i_keyraw*: REQUIRED IF i_keyraw is a
// non-integral type. Three-way i_cmp may be specified alternatively.
+#define i_size // size_t or uint32_t(default). If defined, table expand 2x (else 1.5x)
+
#define i_keydrop // destroy key func - defaults to empty destruct
#define i_keyclone // REQUIRED IF i_valdrop defined
#define i_keyraw // convertion "raw" type - defaults to i_key