File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2
2
//! on-chip hardware random number generator which has been seeded by an
3
3
//! on-chip entropy source.
4
4
5
- extern "platform-intrinsic" {
5
+ #[ allow( improper_ctypes) ]
6
+ extern "unadjusted" {
7
+ #[ link_name = "llvm.x86.rdrand.16" ]
6
8
fn x86_rdrand16_step ( ) -> ( u16 , i32 ) ;
9
+ #[ link_name = "llvm.x86.rdrand.32" ]
7
10
fn x86_rdrand32_step ( ) -> ( u32 , i32 ) ;
11
+ #[ link_name = "llvm.x86.rdseed.16" ]
8
12
fn x86_rdseed16_step ( ) -> ( u16 , i32 ) ;
13
+ #[ link_name = "llvm.x86.rdseed.32" ]
9
14
fn x86_rdseed32_step ( ) -> ( u32 , i32 ) ;
10
15
}
11
16
Original file line number Diff line number Diff line change 2
2
//! on-chip hardware random number generator which has been seeded by an
3
3
//! on-chip entropy source.
4
4
5
- extern "platform-intrinsic" {
5
+ #[ allow( improper_ctypes) ]
6
+ extern "unadjusted" {
7
+ #[ link_name = "llvm.x86.rdrand.64" ]
6
8
fn x86_rdrand64_step ( ) -> ( u64 , i32 ) ;
9
+ #[ link_name = "llvm.x86.rdseed.64" ]
7
10
fn x86_rdseed64_step ( ) -> ( u64 , i32 ) ;
8
11
}
9
12
Original file line number Diff line number Diff line change 36
36
avx512_target_feature,
37
37
mips_target_feature,
38
38
powerpc_target_feature,
39
- wasm_target_feature
39
+ wasm_target_feature,
40
+ abi_unadjusted,
40
41
) ]
41
42
// NB: When running nvptx/nvptx64 cross tests, enabling "integer_atomics" yields
42
43
// a compile-time error: 'unknown feature `integer_atomics`'. This ought to be
You can’t perform that action at this time.
0 commit comments