Skip to content

Commit 768d0cd

Browse files
committed
adjust test gating for f16/f128
1 parent 6335056 commit 768d0cd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/src/num/f128.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ impl f128 {
12911291
///
12921292
/// ```
12931293
/// #![feature(f128)]
1294-
/// # #[cfg(reliable_f128)] {
1294+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
12951295
///
12961296
/// let x = 3.5_f128;
12971297
/// let y = -3.5_f128;
@@ -1323,7 +1323,7 @@ impl f128 {
13231323
///
13241324
/// ```
13251325
/// #![feature(f128)]
1326-
/// # #[cfg(reliable_f128_math)] {
1326+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
13271327
///
13281328
/// let f = 3.5_f128;
13291329
///
@@ -1360,7 +1360,7 @@ impl f128 {
13601360
///
13611361
/// ```
13621362
/// #![feature(f128)]
1363-
/// # #[cfg(reliable_f128_math)] {
1363+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
13641364
///
13651365
/// let f = 3.5_f128;
13661366
///

core/src/num/f16.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ impl f16 {
12661266
///
12671267
/// ```
12681268
/// #![feature(f16)]
1269-
/// # #[cfg(reliable_f16)] {
1269+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
12701270
///
12711271
/// let x = 3.5_f16;
12721272
/// let y = -3.5_f16;
@@ -1297,7 +1297,7 @@ impl f16 {
12971297
///
12981298
/// ```
12991299
/// #![feature(f16)]
1300-
/// # #[cfg(reliable_f16_math)] {
1300+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
13011301
///
13021302
/// let f = 3.5_f16;
13031303
///
@@ -1334,7 +1334,7 @@ impl f16 {
13341334
///
13351335
/// ```
13361336
/// #![feature(f16)]
1337-
/// # #[cfg(reliable_f16_math)] {
1337+
/// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] {
13381338
///
13391339
/// let f = 3.5_f16;
13401340
///

0 commit comments

Comments
 (0)