@@ -159,6 +159,8 @@ libm_macros::for_each_function! {
159
159
jnf,
160
160
ldexp,
161
161
ldexpf,
162
+ ldexpf128,
163
+ ldexpf16,
162
164
lgamma_r,
163
165
lgammaf_r,
164
166
modf,
@@ -178,6 +180,8 @@ libm_macros::for_each_function! {
178
180
roundf16,
179
181
scalbn,
180
182
scalbnf,
183
+ scalbnf128,
184
+ scalbnf16,
181
185
sincos, sincosf,
182
186
trunc,
183
187
truncf,
@@ -351,34 +355,6 @@ macro_rules! impl_op_for_ty {
351
355
}
352
356
}
353
357
354
- // `ldexp` and `scalbn` are the same for binary floating point, so just forward all
355
- // methods.
356
- impl MpOp for crate :: op:: [ <ldexp $suffix>] :: Routine {
357
- type MpTy = <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: MpTy ;
358
-
359
- fn new_mp( ) -> Self :: MpTy {
360
- <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: new_mp( )
361
- }
362
-
363
- fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
364
- <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: run( this, input)
365
- }
366
- }
367
-
368
- impl MpOp for crate :: op:: [ <scalbn $suffix>] :: Routine {
369
- type MpTy = MpFloat ;
370
-
371
- fn new_mp( ) -> Self :: MpTy {
372
- new_mpfloat:: <Self :: FTy >( )
373
- }
374
-
375
- fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
376
- this. assign( input. 0 ) ;
377
- * this <<= input. 1 ;
378
- prep_retval:: <Self :: FTy >( this, Ordering :: Equal )
379
- }
380
- }
381
-
382
358
impl MpOp for crate :: op:: [ <sincos $suffix>] :: Routine {
383
359
type MpTy = ( MpFloat , MpFloat ) ;
384
360
@@ -464,6 +440,35 @@ macro_rules! impl_op_for_ty_all {
464
440
this. 1 . assign( input. 1 ) ;
465
441
let ord = this. 0 . rem_assign_round( & this. 1 , Nearest ) ;
466
442
prep_retval:: <Self :: RustRet >( & mut this. 0 , ord)
443
+
444
+ }
445
+ }
446
+
447
+ // `ldexp` and `scalbn` are the same for binary floating point, so just forward all
448
+ // methods.
449
+ impl MpOp for crate :: op:: [ <ldexp $suffix>] :: Routine {
450
+ type MpTy = <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: MpTy ;
451
+
452
+ fn new_mp( ) -> Self :: MpTy {
453
+ <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: new_mp( )
454
+ }
455
+
456
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
457
+ <crate :: op:: [ <scalbn $suffix>] :: Routine as MpOp >:: run( this, input)
458
+ }
459
+ }
460
+
461
+ impl MpOp for crate :: op:: [ <scalbn $suffix>] :: Routine {
462
+ type MpTy = MpFloat ;
463
+
464
+ fn new_mp( ) -> Self :: MpTy {
465
+ new_mpfloat:: <Self :: FTy >( )
466
+ }
467
+
468
+ fn run( this: & mut Self :: MpTy , input: Self :: RustArgs ) -> Self :: RustRet {
469
+ this. assign( input. 0 ) ;
470
+ * this <<= input. 1 ;
471
+ prep_retval:: <Self :: FTy >( this, Ordering :: Equal )
467
472
}
468
473
}
469
474
}
0 commit comments