This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,24 @@ macro_rules! impl_op_for_ty {
210210 }
211211 }
212212
213+ impl MpOp for crate :: op:: [ <modf $suffix>] :: Routine {
214+ type MpTy = ( MpFloat , MpFloat ) ;
215+
216+ fn new_mp( ) -> Self :: MpTy {
217+ ( new_mpfloat:: <Self :: FTy >( ) , new_mpfloat:: <Self :: FTy >( ) )
218+ }
219+
220+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
221+ this. 0 . assign( input. 0 ) ;
222+ this. 1 . assign( & this. 0 ) ;
223+ let ( ord0, ord1) = this. 0 . trunc_fract_round( & mut this. 1 , Nearest ) ;
224+ (
225+ prep_retval:: <Self :: FTy >( & mut this. 1 , ord0) ,
226+ prep_retval:: <Self :: FTy >( & mut this. 0 , ord1) ,
227+ )
228+ }
229+ }
230+
213231 impl MpOp for crate :: op:: [ <pow $suffix>] :: Routine {
214232 type MpTy = ( MpFloat , MpFloat ) ;
215233
Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ libm_macros::for_each_function! {
5858 ilogbf,
5959 ldexp,
6060 ldexpf,
61- modf,
62- modff,
6361 remquo,
6462 remquof,
6563 scalbn,
@@ -165,7 +163,5 @@ libm_macros::for_each_function! {
165163 frexpf,
166164 ilogb,
167165 ilogbf,
168- modf,
169- modff,
170166 ] ,
171167}
You can’t perform that action at this time.
0 commit comments