@@ -87,24 +87,24 @@ where
87
87
match get_selected_backend ( ) {
88
88
#[ cfg( curve25519_dalek_backend = "simd" ) ]
89
89
BackendKind :: Avx2 =>
90
- self :: vector:: scalar_mul:: pippenger:: spec_avx2:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
90
+ vector:: scalar_mul:: pippenger:: spec_avx2:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
91
91
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
92
92
BackendKind :: Avx512 =>
93
- self :: vector:: scalar_mul:: pippenger:: spec_avx512ifma_avx512vl:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
93
+ vector:: scalar_mul:: pippenger:: spec_avx512ifma_avx512vl:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
94
94
BackendKind :: Serial =>
95
- self :: serial:: scalar_mul:: pippenger:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
95
+ serial:: scalar_mul:: pippenger:: Pippenger :: optional_multiscalar_mul :: < I , J > ( scalars, points) ,
96
96
}
97
97
}
98
98
99
99
#[ cfg( feature = "alloc" ) ]
100
100
pub ( crate ) enum VartimePrecomputedStraus {
101
101
#[ cfg( curve25519_dalek_backend = "simd" ) ]
102
- Avx2 ( self :: vector:: scalar_mul:: precomputed_straus:: spec_avx2:: VartimePrecomputedStraus ) ,
102
+ Avx2 ( vector:: scalar_mul:: precomputed_straus:: spec_avx2:: VartimePrecomputedStraus ) ,
103
103
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
104
104
Avx512ifma (
105
- self :: vector:: scalar_mul:: precomputed_straus:: spec_avx512ifma_avx512vl:: VartimePrecomputedStraus ,
105
+ vector:: scalar_mul:: precomputed_straus:: spec_avx512ifma_avx512vl:: VartimePrecomputedStraus ,
106
106
) ,
107
- Scalar ( self :: serial:: scalar_mul:: precomputed_straus:: VartimePrecomputedStraus ) ,
107
+ Scalar ( serial:: scalar_mul:: precomputed_straus:: VartimePrecomputedStraus ) ,
108
108
}
109
109
110
110
#[ cfg( feature = "alloc" ) ]
@@ -119,12 +119,12 @@ impl VartimePrecomputedStraus {
119
119
match get_selected_backend ( ) {
120
120
#[ cfg( curve25519_dalek_backend = "simd" ) ]
121
121
BackendKind :: Avx2 =>
122
- VartimePrecomputedStraus :: Avx2 ( self :: vector:: scalar_mul:: precomputed_straus:: spec_avx2:: VartimePrecomputedStraus :: new ( static_points) ) ,
122
+ VartimePrecomputedStraus :: Avx2 ( vector:: scalar_mul:: precomputed_straus:: spec_avx2:: VartimePrecomputedStraus :: new ( static_points) ) ,
123
123
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
124
124
BackendKind :: Avx512 =>
125
- VartimePrecomputedStraus :: Avx512ifma ( self :: vector:: scalar_mul:: precomputed_straus:: spec_avx512ifma_avx512vl:: VartimePrecomputedStraus :: new ( static_points) ) ,
125
+ VartimePrecomputedStraus :: Avx512ifma ( vector:: scalar_mul:: precomputed_straus:: spec_avx512ifma_avx512vl:: VartimePrecomputedStraus :: new ( static_points) ) ,
126
126
BackendKind :: Serial =>
127
- VartimePrecomputedStraus :: Scalar ( self :: serial:: scalar_mul:: precomputed_straus:: VartimePrecomputedStraus :: new ( static_points) )
127
+ VartimePrecomputedStraus :: Scalar ( serial:: scalar_mul:: precomputed_straus:: VartimePrecomputedStraus :: new ( static_points) )
128
128
}
129
129
}
130
130
@@ -179,19 +179,16 @@ where
179
179
match get_selected_backend ( ) {
180
180
#[ cfg( curve25519_dalek_backend = "simd" ) ]
181
181
BackendKind :: Avx2 => {
182
- self :: vector:: scalar_mul:: straus:: spec_avx2:: Straus :: multiscalar_mul :: < I , J > (
183
- scalars, points,
184
- )
182
+ vector:: scalar_mul:: straus:: spec_avx2:: Straus :: multiscalar_mul :: < I , J > ( scalars, points)
185
183
}
186
184
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
187
185
BackendKind :: Avx512 => {
188
- self :: vector:: scalar_mul:: straus:: spec_avx512ifma_avx512vl:: Straus :: multiscalar_mul :: <
189
- I ,
190
- J ,
191
- > ( scalars, points)
186
+ vector:: scalar_mul:: straus:: spec_avx512ifma_avx512vl:: Straus :: multiscalar_mul :: < I , J > (
187
+ scalars, points,
188
+ )
192
189
}
193
190
BackendKind :: Serial => {
194
- self :: serial:: scalar_mul:: straus:: Straus :: multiscalar_mul :: < I , J > ( scalars, points)
191
+ serial:: scalar_mul:: straus:: Straus :: multiscalar_mul :: < I , J > ( scalars, points)
195
192
}
196
193
}
197
194
}
@@ -209,21 +206,19 @@ where
209
206
match get_selected_backend ( ) {
210
207
#[ cfg( curve25519_dalek_backend = "simd" ) ]
211
208
BackendKind :: Avx2 => {
212
- self :: vector:: scalar_mul:: straus:: spec_avx2:: Straus :: optional_multiscalar_mul :: < I , J > (
209
+ vector:: scalar_mul:: straus:: spec_avx2:: Straus :: optional_multiscalar_mul :: < I , J > (
213
210
scalars, points,
214
211
)
215
212
}
216
213
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
217
214
BackendKind :: Avx512 => {
218
- self :: vector:: scalar_mul:: straus:: spec_avx512ifma_avx512vl:: Straus :: optional_multiscalar_mul :: <
215
+ vector:: scalar_mul:: straus:: spec_avx512ifma_avx512vl:: Straus :: optional_multiscalar_mul :: <
219
216
I ,
220
217
J ,
221
218
> ( scalars, points)
222
219
}
223
220
BackendKind :: Serial => {
224
- self :: serial:: scalar_mul:: straus:: Straus :: optional_multiscalar_mul :: < I , J > (
225
- scalars, points,
226
- )
221
+ serial:: scalar_mul:: straus:: Straus :: optional_multiscalar_mul :: < I , J > ( scalars, points)
227
222
}
228
223
}
229
224
}
@@ -232,12 +227,12 @@ where
232
227
pub fn variable_base_mul ( point : & EdwardsPoint , scalar : & Scalar ) -> EdwardsPoint {
233
228
match get_selected_backend ( ) {
234
229
#[ cfg( curve25519_dalek_backend = "simd" ) ]
235
- BackendKind :: Avx2 => self :: vector:: scalar_mul:: variable_base:: spec_avx2:: mul ( point, scalar) ,
230
+ BackendKind :: Avx2 => vector:: scalar_mul:: variable_base:: spec_avx2:: mul ( point, scalar) ,
236
231
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
237
232
BackendKind :: Avx512 => {
238
- self :: vector:: scalar_mul:: variable_base:: spec_avx512ifma_avx512vl:: mul ( point, scalar)
233
+ vector:: scalar_mul:: variable_base:: spec_avx512ifma_avx512vl:: mul ( point, scalar)
239
234
}
240
- BackendKind :: Serial => self :: serial:: scalar_mul:: variable_base:: mul ( point, scalar) ,
235
+ BackendKind :: Serial => serial:: scalar_mul:: variable_base:: mul ( point, scalar) ,
241
236
}
242
237
}
243
238
@@ -246,11 +241,11 @@ pub fn variable_base_mul(point: &EdwardsPoint, scalar: &Scalar) -> EdwardsPoint
246
241
pub fn vartime_double_base_mul ( a : & Scalar , A : & EdwardsPoint , b : & Scalar ) -> EdwardsPoint {
247
242
match get_selected_backend ( ) {
248
243
#[ cfg( curve25519_dalek_backend = "simd" ) ]
249
- BackendKind :: Avx2 => self :: vector:: scalar_mul:: vartime_double_base:: spec_avx2:: mul ( a, A , b) ,
244
+ BackendKind :: Avx2 => vector:: scalar_mul:: vartime_double_base:: spec_avx2:: mul ( a, A , b) ,
250
245
#[ cfg( all( curve25519_dalek_backend = "simd" , nightly) ) ]
251
246
BackendKind :: Avx512 => {
252
- self :: vector:: scalar_mul:: vartime_double_base:: spec_avx512ifma_avx512vl:: mul ( a, A , b)
247
+ vector:: scalar_mul:: vartime_double_base:: spec_avx512ifma_avx512vl:: mul ( a, A , b)
253
248
}
254
- BackendKind :: Serial => self :: serial:: scalar_mul:: vartime_double_base:: mul ( a, A , b) ,
249
+ BackendKind :: Serial => serial:: scalar_mul:: vartime_double_base:: mul ( a, A , b) ,
255
250
}
256
251
}
0 commit comments