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 {
210
210
}
211
211
}
212
212
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
+
213
231
impl MpOp for crate :: op:: [ <pow $suffix>] :: Routine {
214
232
type MpTy = ( MpFloat , MpFloat ) ;
215
233
Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ libm_macros::for_each_function! {
58
58
ilogbf,
59
59
ldexp,
60
60
ldexpf,
61
- modf,
62
- modff,
63
61
remquo,
64
62
remquof,
65
63
scalbn,
@@ -165,7 +163,5 @@ libm_macros::for_each_function! {
165
163
frexpf,
166
164
ilogb,
167
165
ilogbf,
168
- modf,
169
- modff,
170
166
] ,
171
167
}
You can’t perform that action at this time.
0 commit comments