mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-15 15:52:13 +11:00
🚚 moved xxhash back from submodule to header
This commit is contained in:
parent
6b481802e5
commit
826db0baef
6 changed files with 5370 additions and 8 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -4,9 +4,6 @@
|
|||
[submodule "drogon"]
|
||||
path = third_party/drogon
|
||||
url = https://github.com/an-tao/drogon
|
||||
[submodule "third_party/xxHash"]
|
||||
path = third_party/xxHash
|
||||
url = https://github.com/Cyan4973/xxHash
|
||||
[submodule "third_party/base64"]
|
||||
path = third_party/base64
|
||||
url = https://github.com/aklomp/base64
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ find_package(Threads REQUIRED)
|
|||
|
||||
add_executable(${PROJECT_NAME} main.cpp )
|
||||
|
||||
add_subdirectory(third_party/xxHash/cmake_unofficial third_party/xxHash/build EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(${PROJECT_NAME} PRIVATE
|
||||
src/bank_api.cpp
|
||||
src/bank_resp.cpp
|
||||
|
|
@ -23,10 +21,12 @@ target_sources(${PROJECT_NAME} PRIVATE
|
|||
src/change_flag.cpp
|
||||
src/json_filter.cpp
|
||||
src/log.cpp
|
||||
src/simdjson.cpp
|
||||
src/transaction.cpp
|
||||
src/user_filter.cpp
|
||||
src/user.cpp
|
||||
src/xxhash_str.cpp
|
||||
src/xxhash.c
|
||||
)
|
||||
|
||||
if(DEFINED USER_SAVE_LOC)
|
||||
|
|
@ -77,7 +77,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC third_party/base64/include)
|
|||
add_subdirectory(third_party/drogon)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE drogon)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${CMAKE_THREAD_LIBS_INIT} )
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE xxHash::xxhash)
|
||||
|
||||
#AVX2_CFLAGS=-mavx2 SSSE3_CFLAGS=-mssse3 SSE41_CFLAGS=-msse4.1 SSE42_CFLAGS=-msse4.2 AVX_CFLAGS=-mavx make lib/libbase64.o
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/third_party/base64/lib/libbase64.o)
|
||||
|
|
|
|||
5325
include/xxhash.h
Normal file
5325
include/xxhash.h
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
#include <xxhash.h>
|
||||
#include "xxhash.h"
|
||||
|
||||
struct xxHashStringGen
|
||||
{
|
||||
|
|
|
|||
42
src/xxhash.c
Normal file
42
src/xxhash.c
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Copyright (C) 2012-2020 Yann Collet
|
||||
*
|
||||
* BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following disclaimer
|
||||
* in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* You can contact the author at:
|
||||
* - xxHash homepage: https://www.xxhash.com
|
||||
* - xxHash source repository: https://github.com/Cyan4973/xxHash
|
||||
*/
|
||||
|
||||
/*
|
||||
* xxhash.c instantiates functions defined in xxhash.h
|
||||
*/
|
||||
|
||||
#define XXH_STATIC_LINKING_ONLY /* access advanced declarations */
|
||||
#define XXH_IMPLEMENTATION /* access definitions */
|
||||
|
||||
#include "xxhash.h"
|
||||
1
third_party/xxHash
vendored
1
third_party/xxHash
vendored
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0e49217046917180b9118a2d89aceaa76a65cf51
|
||||
Loading…
Reference in a new issue