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 = "\
6
6
pub const POLY128_OSTREAM_DECL : & str = r#"
7
7
#ifdef __aarch64__
8
8
std::ostream& operator<<(std::ostream& os, poly128_t value);
9
- std::ostream& operator<<(std::ostream& os, float16_t value);
10
9
#endif
11
10
11
+ std::ostream& operator<<(std::ostream& os, float16_t value);
12
+
12
13
// T1 is the `To` type, T2 is the `From` type
13
14
template<typename T1, typename T2> T1 cast(T2 x) {
14
15
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) {
33
34
return os;
34
35
}
35
36
37
+ #endif
38
+
36
39
std::ostream& operator<<(std::ostream& os, float16_t value) {
37
40
uint16_t temp = 0;
38
41
memcpy(&temp, &value, sizeof(float16_t));
@@ -41,7 +44,6 @@ std::ostream& operator<<(std::ostream& os, float16_t value) {
41
44
os << ss.str();
42
45
return os;
43
46
}
44
- #endif
45
47
"# ;
46
48
47
49
// 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