summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge <[email protected]>2020-04-30 18:56:35 +0200
committerTyge <[email protected]>2020-04-30 18:56:35 +0200
commit5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca (patch)
tree3f3962d8fc64208c90f72793c3c7956fc0d84177
parent57bcef67aeb82cb696421817eef8ffaf432b08eb (diff)
downloadSTC-modified-5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca.tar.gz
STC-modified-5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca.zip
Nothing.
-rw-r--r--stc/cmap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stc/cmap.h b/stc/cmap.h
index 5c91ec92..96144e64 100644
--- a/stc/cmap.h
+++ b/stc/cmap.h
@@ -21,7 +21,7 @@
* SOFTWARE.
*/
-/* An example:
+/* // Example:
#include <stdio.h>
#include "stc/cmap.h"
declare_CMap(ex, int, char);
@@ -193,7 +193,8 @@ cmap_##tag##_setShrinkLimitFactor(CMap_##tag* self, double limit) { \
\
static inline size_t \
cmap_##tag##_bucket(CMap_##tag* self, const cmap_##tag##_rawkey_t* rawKeyPtr, uint32_t* hxPtr) { \
- uint32_t hash = keyHashRaw(rawKeyPtr, sizeof(cmap_##tag##_rawkey_t)), sx, hx = (hash & cmapentry_HASH) | cmapentry_USED; \
+ uint32_t hash = keyHashRaw(rawKeyPtr, sizeof(cmap_##tag##_rawkey_t)); \
+ uint32_t sx, hx = (hash & cmapentry_HASH) | cmapentry_USED; \
size_t cap = cmap_bucketCount(*self); \
size_t idx = cmap_reduce(hash, cap); \
uint8_t* hashx = self->_hashx; \