@@ -267,7 +267,7 @@ impl f16 {
267
267
///
268
268
/// ```
269
269
/// #![feature(f16)]
270
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
270
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
271
271
///
272
272
/// let nan = f16::NAN;
273
273
/// let f = 7.0_f16;
@@ -301,7 +301,7 @@ impl f16 {
301
301
///
302
302
/// ```
303
303
/// #![feature(f16)]
304
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
304
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
305
305
///
306
306
/// let f = 7.0f16;
307
307
/// let inf = f16::INFINITY;
@@ -328,7 +328,7 @@ impl f16 {
328
328
///
329
329
/// ```
330
330
/// #![feature(f16)]
331
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
331
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
332
332
///
333
333
/// let f = 7.0f16;
334
334
/// let inf: f16 = f16::INFINITY;
@@ -357,7 +357,7 @@ impl f16 {
357
357
///
358
358
/// ```
359
359
/// #![feature(f16)]
360
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
360
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
361
361
///
362
362
/// let min = f16::MIN_POSITIVE; // 6.1035e-5
363
363
/// let max = f16::MAX;
@@ -388,7 +388,7 @@ impl f16 {
388
388
///
389
389
/// ```
390
390
/// #![feature(f16)]
391
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
391
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
392
392
///
393
393
/// let min = f16::MIN_POSITIVE; // 6.1035e-5
394
394
/// let max = f16::MAX;
@@ -421,7 +421,7 @@ impl f16 {
421
421
///
422
422
/// ```
423
423
/// #![feature(f16)]
424
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
424
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
425
425
///
426
426
/// use std::num::FpCategory;
427
427
///
@@ -744,7 +744,7 @@ impl f16 {
744
744
///
745
745
/// ```
746
746
/// #![feature(f16)]
747
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
747
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
748
748
///
749
749
/// let value = 4.6_f16;
750
750
/// let rounded = unsafe { value.to_int_unchecked::<u16>() };
@@ -787,7 +787,7 @@ impl f16 {
787
787
///
788
788
/// ```
789
789
/// #![feature(f16)]
790
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
790
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
791
791
///
792
792
/// # // FIXME(f16_f128): enable this once const casting works
793
793
/// # // assert_ne!((1f16).to_bits(), 1f16 as u128); // to_bits() is not casting!
@@ -876,7 +876,7 @@ impl f16 {
876
876
///
877
877
/// ```
878
878
/// #![feature(f16)]
879
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
879
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
880
880
///
881
881
/// let v = f16::from_bits(0x4a40);
882
882
/// assert_eq!(v, 12.5);
@@ -1030,7 +1030,7 @@ impl f16 {
1030
1030
///
1031
1031
/// ```
1032
1032
/// #![feature(f16)]
1033
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1033
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1034
1034
///
1035
1035
/// let value = f16::from_be_bytes([0x4a, 0x40]);
1036
1036
/// assert_eq!(value, 12.5);
@@ -1053,7 +1053,7 @@ impl f16 {
1053
1053
///
1054
1054
/// ```
1055
1055
/// #![feature(f16)]
1056
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1056
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1057
1057
///
1058
1058
/// let value = f16::from_le_bytes([0x40, 0x4a]);
1059
1059
/// assert_eq!(value, 12.5);
@@ -1083,7 +1083,7 @@ impl f16 {
1083
1083
///
1084
1084
/// ```
1085
1085
/// #![feature(f16)]
1086
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1086
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1087
1087
///
1088
1088
/// let value = f16::from_ne_bytes(if cfg!(target_endian = "big") {
1089
1089
/// [0x4a, 0x40]
@@ -1217,7 +1217,7 @@ impl f16 {
1217
1217
///
1218
1218
/// ```
1219
1219
/// #![feature(f16)]
1220
- /// # #[cfg(target_arch = "aarch64")] { // FIXME(f16_F128): rust-lang/rust#123885
1220
+ /// # #[cfg(all( target_arch = "x86_64", target_os = "linux"))] {
1221
1221
///
1222
1222
/// assert!((-3.0f16).clamp(-2.0, 1.0) == -2.0);
1223
1223
/// assert!((0.0f16).clamp(-2.0, 1.0) == 0.0);
0 commit comments