Skip to content

Commit

Permalink
Merge map api changes in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikwidlund committed Jan 22, 2017
1 parent 7a9e4f5 commit 417969e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions benchmark/map_libdynamic.c
Expand Up @@ -15,18 +15,21 @@ struct map_element
uint32_t value;
};

static size_t hash(void *e)
static size_t hash(map *m, void *e)
{
(void) m;
return *(uint32_t *) e;
}

static int equal(void *e1, void *e2)
static int equal(map *m, void *e1, void *e2)
{
(void) m;
return *(uint32_t *) e1 == *(uint32_t *) e2;
}

static void set(void *e1, void *e2)
static void set(map *m, void *e1, void *e2)
{
(void) m;
*(uint64_t *) e1 = *(uint64_t *) e2;
}

Expand Down

0 comments on commit 417969e

Please sign in to comment.