Skip to content

Commit

Permalink
Merge branch 'nothrow'
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed May 31, 2024
2 parents a026d3a + b92558b commit 07b7634
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- run: make clean
- run: make test_ci DEBUG=4 -j4 CXX=clang++
- run: make clean
- run: make bin/pairing_c_min.exe && bin/pairing_c_min.exe
# - run: make test_go
# - run: sudo apt install openjdk-8-jdk
# - run: make -C ffi/java test JAVA_INC=-I/usr/lib/jvm/java-8-openjdk-amd64/include
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ src/base64m.ll: $(GEN_EXE)
$(GEN_EXE) $(GEN_EXE_OPT) -wasm > $@

src/dump_code: src/dump_code.cpp src/fp.cpp src/fp_generator.hpp
$(CXX) -o $@ src/dump_code.cpp src/fp.cpp -g -I include -DMCL_DUMP_JIT -DMCL_MAX_BIT_SIZE=384 -DMCL_SIZEOF_UNIT=8 -DNDEBUG
$(CXX) -o $@ src/dump_code.cpp src/fp.cpp -g -I include -DMCL_DUMP_JIT -DMCL_MAX_BIT_SIZE=384 -DMCL_SIZEOF_UNIT=8 -DNDEBUG -DMCL_MSM=0

src/static_code.asm: src/dump_code
$< > $@
Expand Down Expand Up @@ -431,7 +431,7 @@ endif
bin/emu:
$(CXX) -g -o $@ src/fp.cpp src/bn_c256.cpp test/bn_c256_test.cpp -DMCL_DONT_USE_XBYAK -DMCL_SIZEOF_UNIT=$(MCL_SIZEOF_UNIT) -DMCL_MAX_BIT_SIZE=256 -I./include -DMCL_BINT_ASM=0
bin/pairing_c_min.exe: sample/pairing_c.c include/mcl/vint.hpp src/fp.cpp include/mcl/bn.hpp
$(CXX) -std=c++03 -O3 -g -fno-threadsafe-statics -fno-exceptions -fno-rtti -o $@ sample/pairing_c.c src/fp.cpp src/bn_c384_256.cpp -I./include -DXBYAK_NO_EXCEPTION -DMCL_SIZEOF_UNIT=$(MCL_SIZEOF_UNIT) -DMCL_MAX_BIT_SIZE=384 -DCYBOZU_DONT_USE_STRING -DCYBOZU_DONT_USE_EXCEPTION -DNDEBUG # -DMCL_DONT_USE_CSPRNG
$(CXX) -std=c++03 -O3 -g -fno-threadsafe-statics -fno-exceptions -fno-rtti -o $@ sample/pairing_c.c src/fp.cpp src/bn_c384_256.cpp -I./include -DXBYAK_NO_EXCEPTION -DMCL_SIZEOF_UNIT=$(MCL_SIZEOF_UNIT) -DMCL_MAX_BIT_SIZE=384 -DCYBOZU_DONT_USE_STRING -DCYBOZU_DONT_USE_EXCEPTION -DNDEBUG -DMCL_BINT_ASM=0 -DMCL_MSM=0 # -DMCL_DONT_USE_CSPRNG
bin/ecdsa-emu:
$(CXX) -g -o $@ src/fp.cpp test/ecdsa_test.cpp -DMCL_SIZEOF_UNIT=4 -D__EMSCRIPTEN__ -DMCL_MAX_BIT_SIZE=256 -I./include
bin/ecdsa-c-emu:
Expand Down
6 changes: 4 additions & 2 deletions include/mcl/bn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,13 @@ struct GLV1 : mcl::GLV1T<G1, Fr> {
{
static const size_t n = 128 / mcl::UnitBitSize;
Unit xa[n*2], a[2], b[2];
mcl::gmp::getArray(xa, n*2, x);
ec::local::optimizedSplitRawForBLS12_381(a, b, xa);
bool dummy;
mcl::gmp::getArray(&dummy, xa, n*2, x);
assert(dummy);
ec::local::optimizedSplitRawForBLS12_381(a, b, xa);
gmp::setArray(&dummy, u[0], a, n);
gmp::setArray(&dummy, u[1], b, n);
assert(dummy);
(void)dummy;
}
#endif
Expand Down

0 comments on commit 07b7634

Please sign in to comment.