@@ -1406,6 +1406,39 @@ extern "rust-intrinsic" {
1406
1406
/// [`f64::max`]
1407
1407
pub fn maxnumf64 ( x : f64 , y : f64 ) -> f64 ;
1408
1408
1409
+ /// Returns the minimum of two `f32` values.
1410
+ ///
1411
+ /// Note that, unlike most intrinsics, this is safe to call;
1412
+ /// it does not require an `unsafe` block.
1413
+ /// Therefore, implementations must not require the user to uphold
1414
+ /// any safety invariants.
1415
+ #[ cfg( not( bootstrap) ) ]
1416
+ pub fn minimumf32 ( x : f32 , y : f32 ) -> f32 ;
1417
+ /// Returns the minimum of two `f64` values.
1418
+ ///
1419
+ /// Note that, unlike most intrinsics, this is safe to call;
1420
+ /// it does not require an `unsafe` block.
1421
+ /// Therefore, implementations must not require the user to uphold
1422
+ /// any safety invariants.
1423
+ #[ cfg( not( bootstrap) ) ]
1424
+ pub fn minimumf64 ( x : f64 , y : f64 ) -> f64 ;
1425
+ /// Returns the maximum of two `f32` values.
1426
+ ///
1427
+ /// Note that, unlike most intrinsics, this is safe to call;
1428
+ /// it does not require an `unsafe` block.
1429
+ /// Therefore, implementations must not require the user to uphold
1430
+ /// any safety invariants.
1431
+ #[ cfg( not( bootstrap) ) ]
1432
+ pub fn maximumf32 ( x : f32 , y : f32 ) -> f32 ;
1433
+ /// Returns the maximum of two `f64` values.
1434
+ ///
1435
+ /// Note that, unlike most intrinsics, this is safe to call;
1436
+ /// it does not require an `unsafe` block.
1437
+ /// Therefore, implementations must not require the user to uphold
1438
+ /// any safety invariants.
1439
+ #[ cfg( not( bootstrap) ) ]
1440
+ pub fn maximumf64 ( x : f64 , y : f64 ) -> f64 ;
1441
+
1409
1442
/// Copies the sign from `y` to `x` for `f32` values.
1410
1443
///
1411
1444
/// The stabilized version of this intrinsic is
0 commit comments