@@ -7,3 +7,35 @@ pub fn build_notices(line_prefix: &str) -> String {
7
7
"
8
8
)
9
9
}
10
+
11
+ // Format f16 values (and vectors containing them) in a way that is consistent with C.
12
+ pub const F16_FORMATTING_DEF : & str = r#"
13
+ #[repr(transparent)]
14
+ struct Hex<T>(T);
15
+ "# ;
16
+
17
+ pub const X86_CONFIGURATIONS : & str = r#"
18
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx512))]
19
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx2))]
20
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_avx))]
21
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_sse42))]
22
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_sse41))]
23
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_ssse3))]
24
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_sse3))]
25
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_sse2))]
26
+ #![cfg_attr(target_arch = "x86", feature(stdarch_x86_sse))]
27
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx512))]
28
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx2))]
29
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_avx))]
30
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_fma))]
31
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_aes))]
32
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_sha))]
33
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_bmi1))]
34
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_bmi2))]
35
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_lzcnt))]
36
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_popcnt))]
37
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_rdrand))]
38
+ #![cfg_attr(target_arch = "x86_64", feature(stdarch_x86_rdseed))]
39
+ #![cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), feature(stdarch_x86_mmx))]
40
+ #![feature(fmt_helpers_for_derive)]
41
+ "# ;
0 commit comments