Skip to content

Commit

Permalink
ff/mont_t.cuh: make compiler reject unsupported moduli bit length.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Oct 30, 2024
1 parent 0a9331c commit 18c00f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ff/mont_t.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public:
using mem_t = mont_t;
protected:
static const size_t n = (N+31)/32;
static_assert((n%2) == 0 && n >= 4, "unsupported bit length");
private:
uint32_t even[n];

Expand Down

0 comments on commit 18c00f5

Please sign in to comment.