Skip to content

Commit 717a3ad

Browse files
fix: update the display of uint8_t type in C++
1 parent c2294ff commit 717a3ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ std::ostream& operator<<(std::ostream& os, poly128_t value);
99
#endif
1010
1111
std::ostream& operator<<(std::ostream& os, float16_t value);
12+
std::ostream& operator<<(std::ostream& os, uint8_t value);
1213
1314
// T1 is the `To` type, T2 is the `From` type
1415
template<typename T1, typename T2> T1 cast(T2 x) {
@@ -44,6 +45,11 @@ std::ostream& operator<<(std::ostream& os, float16_t value) {
4445
os << ss.str();
4546
return os;
4647
}
48+
49+
std::ostream& operator<<(std::ostream& os, uint8_t value) {
50+
os << (unsigned int) value;
51+
return os;
52+
}
4753
"#;
4854

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

0 commit comments

Comments
 (0)