Skip to content

Commit a347d80

Browse files
authored
Update hashing algorithm for Processor caches (#1656)
* Use xxHash for CacheID Signed-off-by: Rémi Achard <[email protected]> * Using XXH3_128bits Signed-off-by: Rémi Achard <[email protected]> Signed-off-by: Rémi Achard <[email protected]>
1 parent 82f56ab commit a347d80

27 files changed

+5689
-589
lines changed

THIRD-PARTY.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,6 @@ In no particular order:
99

1010
---------------------------------------------------------------------
1111

12-
MD5, courtesy of L. Peter Deutsch, Aladdin Enterprises.
13-
http://sourceforge.net/projects/libmd5-rfc/files/
14-
15-
Copyright (C) 1999, 2002 Aladdin Enterprises. All rights reserved.
16-
17-
This software is provided 'as-is', without any express or implied
18-
warranty. In no event will the authors be held liable for any damages
19-
arising from the use of this software.
20-
21-
Permission is granted to anyone to use this software for any purpose,
22-
including commercial applications, and to alter it and redistribute it
23-
freely, subject to the following restrictions:
24-
25-
1. The origin of this software must not be misrepresented; you must not
26-
claim that you wrote the original software. If you use this software
27-
in a product, an acknowledgment in the product documentation would be
28-
appreciated but is not required.
29-
2. Altered source versions must be plainly marked as such, and must not be
30-
misrepresented as being the original software.
31-
3. This notice may not be removed or altered from any source distribution.
32-
33-
L. Peter Deutsch
34-
35-
36-
---------------------------------------------------------------------
37-
3812
argparse, courtesy of OpenImageIO and Larry Gritz
3913
http://openimageio.org
4014

@@ -229,4 +203,33 @@ England
229203

230204
---------------------------------------------------------------------
231205

206+
xxHash Library
207+
Copyright (c) 2012-2021 Yann Collet
208+
All rights reserved.
209+
210+
BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
211+
212+
Redistribution and use in source and binary forms, with or without modification,
213+
are permitted provided that the following conditions are met:
214+
215+
* Redistributions of source code must retain the above copyright notice, this
216+
list of conditions and the following disclaimer.
217+
218+
* Redistributions in binary form must reproduce the above copyright notice, this
219+
list of conditions and the following disclaimer in the documentation and/or
220+
other materials provided with the distribution.
221+
222+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
223+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
224+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
225+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
226+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
227+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
228+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
229+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
230+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
231+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
232+
233+
---------------------------------------------------------------------
234+
232235
If we have left anything out, it is unintentional. Please let us know.

ext/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
# Sample ICC (modified)
88
add_subdirectory(sampleicc)
9+
10+
# xxHash
11+
add_subdirectory(xxHash)

ext/xxHash/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright Contributors to the OpenColorIO Project.
3+
4+
# xxHash v0.8.1
5+
# https://github.com/Cyan4973/xxHash
6+
add_library(xxHash INTERFACE IMPORTED GLOBAL)
7+
set_target_properties(xxHash PROPERTIES
8+
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/src/include"
9+
)

0 commit comments

Comments
 (0)