
On Mon, Mar 05, 2018 at 04:55:15PM +0300, dunaev@tecon.ru wrote:
From: Dmitry Dunaev dunaev@tecon.ru
Please add some comments about why we're adding this support and where it's used.
[snip]
common/image-fit.c | 7 ++ include/image.h | 12 +++ include/u-boot/xxhash.h | 143 ++++++++++++++++++++++++++ lib/Kconfig | 8 ++ lib/Makefile | 1 + lib/xxhash.c | 265 ++++++++++++++++++++++++++++++++++++++++++++++++ tools/Makefile | 2 + 7 files changed, 438 insertions(+)
Please enable this for sandbox, where it should build cleanly and without warnings. If you can add a test for it under test/py/tests/ that would be even better.
diff --git a/include/u-boot/xxhash.h b/include/u-boot/xxhash.h new file mode 100644 index 0000000..ecbeb98 --- /dev/null +++ b/include/u-boot/xxhash.h @@ -0,0 +1,143 @@ +/*
- xxHash - Extremely Fast Hash algorithm
- Copyright (C) 2012-2016, Yann Collet.
- BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
[snip]
diff --git a/lib/xxhash.c b/lib/xxhash.c new file mode 100644 index 0000000..c9fe476 --- /dev/null +++ b/lib/xxhash.c @@ -0,0 +1,265 @@ +/*
- xxHash - Extremely Fast Hash algorithm
- Copyright (C) 2012-2016, Yann Collet.
- BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
SPDX tag only please.
Thanks!