We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c824690 commit 3a1aab8Copy full SHA for 3a1aab8
crates/intrinsic-test/src/arm/config.rs
@@ -10,12 +10,12 @@ std::ostream& operator<<(std::ostream& os, float16_t value);
10
#endif
11
12
// T1 is the `To` type, T2 is the `From` type
13
-template<typename T1, typename T2> T1 cast(T2 x) {{
+template<typename T1, typename T2> T1 cast(T2 x) {
14
static_assert(sizeof(T1) == sizeof(T2), "sizeof T1 and T2 must be the same");
15
- T1 ret{{}};
+ T1 ret{};
16
memcpy(&ret, &x, sizeof(T1));
17
return ret;
18
-}}
+}
19
"#;
20
21
pub const POLY128_OSTREAM_DEF: &str = r#"
0 commit comments