@@ -10,6 +10,7 @@ pub struct VecPoly1(pub Vec<Scalar>, pub Vec<Scalar>);
1010
1111/// Represents a degree-3 vector polynomial
1212/// \\(\mathbf{a} + \mathbf{b} \cdot x + \mathbf{c} \cdot x^2 + \mathbf{d} \cdot x^3 \\).
13+ #[ cfg( feature = "yoloproofs" ) ]
1314pub struct VecPoly3 (
1415 pub Vec < Scalar > ,
1516 pub Vec < Scalar > ,
@@ -22,6 +23,7 @@ pub struct Poly2(pub Scalar, pub Scalar, pub Scalar);
2223
2324/// Represents a degree-6 scalar polynomial, without the zeroth degree
2425/// \\(a \cdot x + b \cdot x^2 + c \cdot x^3 + d \cdot x^4 + e \cdot x^5 + f \cdot x^6\\)
26+ #[ cfg( feature = "yoloproofs" ) ]
2527pub struct Poly6 {
2628 pub t1 : Scalar ,
2729 pub t2 : Scalar ,
@@ -102,6 +104,7 @@ impl VecPoly1 {
102104 }
103105}
104106
107+ #[ cfg( feature = "yoloproofs" ) ]
105108impl VecPoly3 {
106109 pub fn zero ( n : usize ) -> Self {
107110 VecPoly3 (
@@ -152,6 +155,7 @@ impl Poly2 {
152155 }
153156}
154157
158+ #[ cfg( feature = "yoloproofs" ) ]
155159impl Poly6 {
156160 pub fn eval ( & self , x : Scalar ) -> Scalar {
157161 x * ( self . t1 + x * ( self . t2 + x * ( self . t3 + x * ( self . t4 + x * ( self . t5 + x * self . t6 ) ) ) ) )
@@ -177,6 +181,7 @@ impl Drop for Poly2 {
177181 }
178182}
179183
184+ #[ cfg( feature = "yoloproofs" ) ]
180185impl Drop for VecPoly3 {
181186 fn drop ( & mut self ) {
182187 for e in self . 0 . iter_mut ( ) {
@@ -194,6 +199,7 @@ impl Drop for VecPoly3 {
194199 }
195200}
196201
202+ #[ cfg( feature = "yoloproofs" ) ]
197203impl Drop for Poly6 {
198204 fn drop ( & mut self ) {
199205 self . t1 . clear ( ) ;
0 commit comments