@@ -152,6 +152,7 @@ libm_macros::for_each_function! {
152152 floorf16,
153153 fmod,
154154 fmodf,
155+ fmodf128,
155156 fmodf16,
156157 frexp,
157158 frexpf,
@@ -301,21 +302,6 @@ macro_rules! impl_op_for_ty {
301302 }
302303 }
303304
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-
319305 impl MpOp for crate :: op:: [ <frexp $suffix>] :: Routine {
320306 type MpTy = MpFloat ;
321307
@@ -481,6 +467,21 @@ macro_rules! impl_op_for_ty_all {
481467 prep_retval:: <Self :: RustRet >( & mut this. 0 , Ordering :: Equal )
482468 }
483469 }
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+ }
484485 }
485486 } ;
486487}
@@ -526,22 +527,6 @@ impl MpOp for crate::op::lgammaf_r::Routine {
526527 }
527528}
528529
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-
545530/* stub implementations so we don't need to special case them */
546531
547532impl MpOp for crate :: op:: nextafter:: Routine {
0 commit comments