Searched hist:fc5fc76bdad14425e3743e1494c9e444570df1be (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/lib/ |
| H A D | hashtable.c | fc5fc76bdad14425e3743e1494c9e444570df1be Fri Oct 01 20:51:02 UTC 2010 Andreas Bießmann <andreas.devel@googlemail.com> lib/hashtable.c: add CONFIG_ENV_MIN_ENTRIES
This patch adds a new config parameter for adjusting the calculation of hash table size when importing a buffer.
When importing a extremely small buffer (e.g. the default_environment) the old calculation generated a hash table which could hold at most the buffer content but no more entires.
The new calculation add a fixed number of entries to the result to fit better for small import buffers. This amount may be configured by the user in board file to adjust the behaviour.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
|