Skip to content

Commit 3a4ae99

Browse files
make std::ostream& operator<<(std::ostream& os, float16_t value);
definition available for armv7 also
1 parent 3a1aab8 commit 3a4ae99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/intrinsic-test/src/arm/config.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ pub const NOTICE: &str = "\
66
pub const POLY128_OSTREAM_DECL: &str = r#"
77
#ifdef __aarch64__
88
std::ostream& operator<<(std::ostream& os, poly128_t value);
9-
std::ostream& operator<<(std::ostream& os, float16_t value);
109
#endif
1110
11+
std::ostream& operator<<(std::ostream& os, float16_t value);
12+
1213
// T1 is the `To` type, T2 is the `From` type
1314
template<typename T1, typename T2> T1 cast(T2 x) {
1415
static_assert(sizeof(T1) == sizeof(T2), "sizeof T1 and T2 must be the same");
@@ -33,6 +34,8 @@ std::ostream& operator<<(std::ostream& os, poly128_t value) {
3334
return os;
3435
}
3536
37+
#endif
38+
3639
std::ostream& operator<<(std::ostream& os, float16_t value) {
3740
uint16_t temp = 0;
3841
memcpy(&temp, &value, sizeof(float16_t));
@@ -41,7 +44,6 @@ std::ostream& operator<<(std::ostream& os, float16_t value) {
4144
os << ss.str();
4245
return os;
4346
}
44-
#endif
4547
"#;
4648

4749
// Format f16 values (and vectors containing them) in a way that is consistent with C.

0 commit comments

Comments
 (0)