File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/intrinsic-test/src/arm Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ pub const NOTICE: &str = "\
66pub const POLY128_OSTREAM_DECL : & str = r#"
77#ifdef __aarch64__
88std::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
1314template<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+
3639std::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.
You can’t perform that action at this time.
0 commit comments