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 +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,25 @@ macro_rules! impl_op_for_ty {
258
258
}
259
259
}
260
260
261
+ impl MpOp for crate :: op:: [ <frexp $suffix>] :: Routine {
262
+ type MpTy = MpFloat ;
263
+
264
+ fn new_mp( ) -> Self :: MpTy {
265
+ new_mpfloat:: <Self :: FTy >( )
266
+ }
267
+
268
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
269
+ // Implementation taken from `rug::Float::to_f32_exp`.
270
+ this. assign( input. 0 ) ;
271
+ let exp = this. get_exp( ) . unwrap_or( 0 ) ;
272
+ if exp != 0 {
273
+ * this >>= exp;
274
+ }
275
+
276
+ ( prep_retval:: <Self :: FTy >( this, Ordering :: Equal ) , exp)
277
+ }
278
+ }
279
+
261
280
impl MpOp for crate :: op:: [ <jn $suffix>] :: Routine {
262
281
type MpTy = MpFloat ;
263
282
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ libm_macros::for_each_function! {
52
52
] ,
53
53
skip: [
54
54
// FIXME: MPFR tests needed
55
- frexp,
56
- frexpf,
57
55
ilogb,
58
56
ilogbf,
59
57
ldexp,
@@ -159,8 +157,6 @@ libm_macros::for_each_function! {
159
157
ynf,
160
158
161
159
// FIXME: MPFR tests needed
162
- frexp,
163
- frexpf,
164
160
ilogb,
165
161
ilogbf,
166
162
] ,
You can’t perform that action at this time.
0 commit comments