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 +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,34 @@ macro_rules! impl_op_for_ty {
255
255
}
256
256
}
257
257
258
+ // `ldexp` and `scalbn` are the same for binary floating point, so just forward all
259
+ // methods.
260
+ impl MpOp for crate :: op:: [ <ldexp $suffix>] :: Routine {
261
+ type MpTy = <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: MpTy ;
262
+
263
+ fn new_mp( ) -> Self :: MpTy {
264
+ <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: new_mp( )
265
+ }
266
+
267
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
268
+ <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: run( this, input)
269
+ }
270
+ }
271
+
272
+ impl MpOp for crate :: op:: [ <scalbn $suffix>] :: Routine {
273
+ type MpTy = MpFloat ;
274
+
275
+ fn new_mp( ) -> Self :: MpTy {
276
+ new_mpfloat:: <Self :: FTy >( )
277
+ }
278
+
279
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
280
+ this. assign( input. 0 ) ;
281
+ * this <<= input. 1 ;
282
+ prep_retval:: <Self :: FTy >( this, Ordering :: Equal )
283
+ }
284
+ }
285
+
258
286
impl MpOp for crate :: op:: [ <sincos $suffix>] :: Routine {
259
287
type MpTy = ( MpFloat , MpFloat ) ;
260
288
Original file line number Diff line number Diff line change @@ -56,14 +56,10 @@ libm_macros::for_each_function! {
56
56
frexpf,
57
57
ilogb,
58
58
ilogbf,
59
- ldexp,
60
- ldexpf,
61
59
modf,
62
60
modff,
63
61
remquo,
64
62
remquof,
65
- scalbn,
66
- scalbnf,
67
63
68
64
// FIXME: test needed, see
69
65
// https://github.com/rust-lang/libm/pull/311#discussion_r1818273392
You can’t perform that action at this time.
0 commit comments