Skip to content

Commit

Permalink
rebase import fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Aug 13, 2023
1 parent 60809ff commit 0c79436
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchmarks/bench_evm_modexp_dos.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import
../constantine/ethereum_evm_precompiles,
./platforms, ./bench_blueprint,

../constantine/platforms/codecs
../constantine/serialization/codecs

proc report(op: string, elapsedNs: int64, elapsedCycles: int64, iters: int) =
let ns = elapsedNs div iters
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/bench_powmod.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import
../constantine/math/arithmetic,
../constantine/math/io/[io_bigints, io_fields],
../constantine/math/config/curves,
../constantine/platforms/[abstractions, codecs],
../constantine/platforms/abstractions,
../constantine/serialization/codecs,
../constantine/math_arbitrary_precision/arithmetic/bigints_views,
../helpers/prng_unsafe,
./platforms, ./bench_blueprint
Expand Down
2 changes: 1 addition & 1 deletion constantine/math/polynomials/fft.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func computeRootsOfUnity[EC](ctx: var ECFFT_Descriptor[EC], generatorRootOfUnity

doAssert ctx.rootsOfUnity[ctx.order].isOne().bool()

func new*(T: type ECFFT_Descriptor, order: int, generatorRootOfUnity: auto): T =
func new(T: type ECFFT_Descriptor, order: int, generatorRootOfUnity: auto): T =
result.order = order
result.rootsOfUnity = allocHeapArrayAligned(matchingOrderBigInt(T.EC.F.C), order+1, alignment = 64)

Expand Down
2 changes: 1 addition & 1 deletion tests/math_bigints/t_bigints_mul_vs_gmp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import
../../constantine/math/arithmetic,
../../constantine/platforms/abstractions,
# Test utilities
../../constantine/platforms/codecs,
../../constantine/serialization/codecs,
../../helpers/prng_unsafe

echo "\n------------------------------------------------------\n"
Expand Down
3 changes: 2 additions & 1 deletion tests/math_fields/t_finite_fields_vs_gmp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import
# Third-party
gmp,
# Internal
../../constantine/platforms/[abstractions, codecs],
../../constantine/platforms/abstractions,
../../constantine/serialization/codecs,
../../constantine/math/io/[io_bigints, io_fields],
../../constantine/math/arithmetic,
../../constantine/math/config/curves,
Expand Down

0 comments on commit 0c79436

Please sign in to comment.