[cache] Set default values for cache template parameters

This commit is contained in:
Behdad Esfahbod 2022-05-29 10:23:19 -06:00
parent 3957d2927d
commit 0bb4c1f021
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
/* Implements a lockfree cache for int->int functions. */
template <unsigned int key_bits, unsigned int value_bits, unsigned int cache_bits>
template <unsigned int key_bits=16, unsigned int value_bits=8 + 32 - key_bits, unsigned int cache_bits=8>
struct hb_cache_t
{
static_assert ((key_bits >= cache_bits), "");