@@ -241,17 +241,17 @@ macro_rules! impl_op_for_ty {
241
241
}
242
242
243
243
impl MpOp for crate :: op:: [ <jn $suffix>] :: Routine {
244
- type MpTy = ( i32 , MpFloat ) ;
244
+ type MpTy = MpFloat ;
245
245
246
246
fn new_mp( ) -> Self :: MpTy {
247
- ( 0 , new_mpfloat:: <Self :: FTy >( ) )
247
+ new_mpfloat:: <Self :: FTy >( )
248
248
}
249
249
250
250
fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
251
- this . 0 = input. 0 ;
252
- this. 1 . assign( input . 1 ) ;
253
- let ord = this. 1 . jn_round( this . 0 , Nearest ) ;
254
- prep_retval:: <Self :: FTy >( & mut this. 1 , ord)
251
+ let ( n , x ) = input;
252
+ this. assign( x ) ;
253
+ let ord = this. jn_round( n , Nearest ) ;
254
+ prep_retval:: <Self :: FTy >( this, ord)
255
255
}
256
256
}
257
257
@@ -274,17 +274,17 @@ macro_rules! impl_op_for_ty {
274
274
}
275
275
276
276
impl MpOp for crate :: op:: [ <yn $suffix>] :: Routine {
277
- type MpTy = ( i32 , MpFloat ) ;
277
+ type MpTy = MpFloat ;
278
278
279
279
fn new_mp( ) -> Self :: MpTy {
280
- ( 0 , new_mpfloat:: <Self :: FTy >( ) )
280
+ new_mpfloat:: <Self :: FTy >( )
281
281
}
282
282
283
283
fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
284
- this . 0 = input. 0 ;
285
- this. 1 . assign( input . 1 ) ;
286
- let ord = this. 1 . yn_round( this . 0 , Nearest ) ;
287
- prep_retval:: <Self :: FTy >( & mut this. 1 , ord)
284
+ let ( n , x ) = input;
285
+ this. assign( x ) ;
286
+ let ord = this. yn_round( n , Nearest ) ;
287
+ prep_retval:: <Self :: FTy >( this, ord)
288
288
}
289
289
}
290
290
}
0 commit comments