diff options
| author | Tyge <[email protected]> | 2020-04-30 18:56:35 +0200 |
|---|---|---|
| committer | Tyge <[email protected]> | 2020-04-30 18:56:35 +0200 |
| commit | 5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca (patch) | |
| tree | 3f3962d8fc64208c90f72793c3c7956fc0d84177 | |
| parent | 57bcef67aeb82cb696421817eef8ffaf432b08eb (diff) | |
| download | STC-modified-5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca.tar.gz STC-modified-5ff4f6aa3327b8ab403f51dd5499a4ece6a97aca.zip | |
Nothing.
| -rw-r--r-- | stc/cmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; \
|
