File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 49
49
50
50
#endif
51
51
52
+ #if !(1 <= COMB_BLOCKS && COMB_BLOCKS <= 256 )
53
+ # error "COMB_BLOCKS must be in the range [1, 256]"
54
+ #endif
55
+ #if !(1 <= COMB_TEETH && COMB_TEETH <= 8 )
56
+ # error "COMB_TEETH must be in the range [1, 8]"
57
+ #endif
58
+ #if !(1 <= COMB_SPACING && COMB_SPACING <= 256 )
59
+ # error "COMB_SPACING must be in the range [1, 256]"
60
+ #endif
61
+
52
62
/* The remaining COMB_* parameters are derived values, don't modify these. */
53
63
#define COMB_BITS (COMB_BLOCKS * COMB_TEETH * COMB_SPACING)
54
64
#define COMB_GROUPED ((COMB_SPACING == 1) && ((32 % COMB_TEETH) == 0))
57
67
#define COMB_POINTS_TOTAL (COMB_BLOCKS * COMB_POINTS)
58
68
#define COMB_MASK (COMB_POINTS - 1)
59
69
70
+ #if !(256 <= COMB_BITS && COMB_BITS <= 288 )
71
+ # error "COMB_BITS must be in the range [256, 288]"
72
+ #endif
73
+
60
74
#else
61
75
62
76
#if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
You can’t perform that action at this time.
0 commit comments