@@ -152,6 +152,7 @@ libm_macros::for_each_function! {
152
152
floorf16,
153
153
fmod,
154
154
fmodf,
155
+ fmodf128,
155
156
fmodf16,
156
157
frexp,
157
158
frexpf,
@@ -301,21 +302,6 @@ macro_rules! impl_op_for_ty {
301
302
}
302
303
}
303
304
304
- impl MpOp for crate :: op:: [ <fmod $suffix>] :: Routine {
305
- type MpTy = ( MpFloat , MpFloat ) ;
306
-
307
- fn new_mp( ) -> Self :: MpTy {
308
- ( new_mpfloat:: <Self :: FTy >( ) , new_mpfloat:: <Self :: FTy >( ) )
309
- }
310
-
311
- fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
312
- this. 0 . assign( input. 0 ) ;
313
- this. 1 . assign( input. 1 ) ;
314
- let ord = this. 0 . rem_assign_round( & this. 1 , Nearest ) ;
315
- prep_retval:: <Self :: RustRet >( & mut this. 0 , ord)
316
- }
317
- }
318
-
319
305
impl MpOp for crate :: op:: [ <frexp $suffix>] :: Routine {
320
306
type MpTy = MpFloat ;
321
307
@@ -481,6 +467,21 @@ macro_rules! impl_op_for_ty_all {
481
467
prep_retval:: <Self :: RustRet >( & mut this. 0 , Ordering :: Equal )
482
468
}
483
469
}
470
+
471
+ impl MpOp for crate :: op:: [ <fmod $suffix>] :: Routine {
472
+ type MpTy = ( MpFloat , MpFloat ) ;
473
+
474
+ fn new_mp( ) -> Self :: MpTy {
475
+ ( new_mpfloat:: <Self :: FTy >( ) , new_mpfloat:: <Self :: FTy >( ) )
476
+ }
477
+
478
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
479
+ this. 0 . assign( input. 0 ) ;
480
+ this. 1 . assign( input. 1 ) ;
481
+ let ord = this. 0 . rem_assign_round( & this. 1 , Nearest ) ;
482
+ prep_retval:: <Self :: RustRet >( & mut this. 0 , ord)
483
+ }
484
+ }
484
485
}
485
486
} ;
486
487
}
@@ -526,22 +527,6 @@ impl MpOp for crate::op::lgammaf_r::Routine {
526
527
}
527
528
}
528
529
529
- // No fmodf128 yet
530
- impl MpOp for crate :: op:: fmodf16:: Routine {
531
- type MpTy = ( MpFloat , MpFloat ) ;
532
-
533
- fn new_mp ( ) -> Self :: MpTy {
534
- ( new_mpfloat :: < Self :: FTy > ( ) , new_mpfloat :: < Self :: FTy > ( ) )
535
- }
536
-
537
- fn run ( this : & mut Self :: MpTy , input : Self :: RustArgs ) -> Self :: RustRet {
538
- this. 0 . assign ( input. 0 ) ;
539
- this. 1 . assign ( input. 1 ) ;
540
- let ord = this. 0 . rem_assign_round ( & this. 1 , Nearest ) ;
541
- prep_retval :: < Self :: RustRet > ( & mut this. 0 , ord)
542
- }
543
- }
544
-
545
530
/* stub implementations so we don't need to special case them */
546
531
547
532
impl MpOp for crate :: op:: nextafter:: Routine {
0 commit comments