rename "src" to "external" (containing git submodules of external dependencies)

This commit is contained in:
Balazs Komuves 2023-10-17 11:25:51 +02:00
parent 46084e1413
commit 83c9753b6e
9 changed files with 8 additions and 8 deletions

8
.gitmodules vendored
View File

@ -1,14 +1,14 @@
[submodule "hash/cpu/src/zikkurat-algebra"]
path = hash/cpu/src/zikkurat-algebra
path = hash/cpu/external/zikkurat-algebra
url = https://github.com/faulhornlabs/zikkurat-algebra
[submodule "hash/cpu/src/HorizenLabs-poseidon2"]
path = hash/cpu/src/HorizenLabs-poseidon2
path = hash/cpu/external/HorizenLabs-poseidon2
url = https://github.com/HorizenLabs/poseidon2
[submodule "hash/cpu/src/constantine"]
path = hash/cpu/src/constantine
path = hash/cpu/external/constantine
url = https://github.com/mratsim/constantine/
[submodule "hash/cpu/src/Blake3"]
path = hash/cpu/src/Blake3
path = hash/cpu/external/Blake3
url = https://github.com/BLAKE3-team/BLAKE3
[submodule "hash/snark/src/hash-circuits"]
path = hash/snark/external/hash-circuits

View File

@ -1,7 +1,7 @@
#!/bin/bash
ORIG=`pwd`
cd ../../../src/Blake3/
cd ../../../external/Blake3/
IMPL=`pwd`
cd $IMPL

View File

@ -1,7 +1,7 @@
#!/bin/bash
echo "build"
ZIK_PATH="../../../src/zikkurat-algebra/"
ZIK_PATH="../../../external/zikkurat-algebra/"
mkdir -p build

View File

@ -23,8 +23,8 @@ gcc -O3 \
#include <assert.h>
#include <pthread.h>
#include "../../../src/zikkurat-algebra/lib/cbits/curves/fields/std/bn128_r_std.h"
#include "../../../src/zikkurat-algebra/lib/cbits/curves/fields/mont/bn128_r_mont.h"
#include "../../../external/zikkurat-algebra/lib/cbits/curves/fields/std/bn128_r_std.h"
#include "../../../external/zikkurat-algebra/lib/cbits/curves/fields/mont/bn128_r_mont.h"
#define NLIMBS 4