@@ -261,7 +261,7 @@ impl f16 {
261
261
///
262
262
/// ```
263
263
/// #![feature(f16)]
264
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
264
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
265
265
///
266
266
/// let nan = f16::NAN;
267
267
/// let f = 7.0_f16;
@@ -293,7 +293,7 @@ impl f16 {
293
293
///
294
294
/// ```
295
295
/// #![feature(f16)]
296
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
296
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
297
297
///
298
298
/// let f = 7.0f16;
299
299
/// let inf = f16::INFINITY;
@@ -319,7 +319,7 @@ impl f16 {
319
319
///
320
320
/// ```
321
321
/// #![feature(f16)]
322
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
322
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
323
323
///
324
324
/// let f = 7.0f16;
325
325
/// let inf: f16 = f16::INFINITY;
@@ -347,7 +347,7 @@ impl f16 {
347
347
///
348
348
/// ```
349
349
/// #![feature(f16)]
350
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
350
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
351
351
///
352
352
/// let min = f16::MIN_POSITIVE; // 6.1035e-5
353
353
/// let max = f16::MAX;
@@ -377,7 +377,7 @@ impl f16 {
377
377
///
378
378
/// ```
379
379
/// #![feature(f16)]
380
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
380
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
381
381
///
382
382
/// let min = f16::MIN_POSITIVE; // 6.1035e-5
383
383
/// let max = f16::MAX;
@@ -409,7 +409,7 @@ impl f16 {
409
409
///
410
410
/// ```
411
411
/// #![feature(f16)]
412
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
412
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
413
413
///
414
414
/// use std::num::FpCategory;
415
415
///
@@ -867,7 +867,7 @@ impl f16 {
867
867
///
868
868
/// ```
869
869
/// #![feature(f16)]
870
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
870
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
871
871
///
872
872
/// let value = 4.6_f16;
873
873
/// let rounded = unsafe { value.to_int_unchecked::<u16>() };
@@ -910,7 +910,7 @@ impl f16 {
910
910
///
911
911
/// ```
912
912
/// #![feature(f16)]
913
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
913
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
914
914
///
915
915
/// # // FIXME(f16_f128): enable this once const casting works
916
916
/// # // assert_ne!((1f16).to_bits(), 1f16 as u128); // to_bits() is not casting!
@@ -958,7 +958,7 @@ impl f16 {
958
958
///
959
959
/// ```
960
960
/// #![feature(f16)]
961
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
961
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
962
962
///
963
963
/// let v = f16::from_bits(0x4a40);
964
964
/// assert_eq!(v, 12.5);
@@ -1071,7 +1071,7 @@ impl f16 {
1071
1071
///
1072
1072
/// ```
1073
1073
/// #![feature(f16)]
1074
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1074
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1075
1075
///
1076
1076
/// let value = f16::from_be_bytes([0x4a, 0x40]);
1077
1077
/// assert_eq!(value, 12.5);
@@ -1094,7 +1094,7 @@ impl f16 {
1094
1094
///
1095
1095
/// ```
1096
1096
/// #![feature(f16)]
1097
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1097
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1098
1098
///
1099
1099
/// let value = f16::from_le_bytes([0x40, 0x4a]);
1100
1100
/// assert_eq!(value, 12.5);
@@ -1124,7 +1124,7 @@ impl f16 {
1124
1124
///
1125
1125
/// ```
1126
1126
/// #![feature(f16)]
1127
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1127
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1128
1128
///
1129
1129
/// let value = f16::from_ne_bytes(if cfg!(target_endian = "big") {
1130
1130
/// [0x4a, 0x40]
@@ -1257,7 +1257,7 @@ impl f16 {
1257
1257
///
1258
1258
/// ```
1259
1259
/// #![feature(f16)]
1260
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1260
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1261
1261
///
1262
1262
/// assert!((-3.0f16).clamp(-2.0, 1.0) == -2.0);
1263
1263
/// assert!((0.0f16).clamp(-2.0, 1.0) == 0.0);
0 commit comments