mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
Limited to little endian target
This commit is contained in:
parent
a2c72ce594
commit
d8d1e6ce21
@ -20,6 +20,7 @@
|
|||||||
// CHECK-NEXT: store <8 x i16>
|
// CHECK-NEXT: store <8 x i16>
|
||||||
// CHECK-NEXT: ret void
|
// CHECK-NEXT: ret void
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
#[cfg(target_endian = "little")]
|
||||||
pub fn convert(value: [u16; 8]) -> [u8; 16] {
|
pub fn convert(value: [u16; 8]) -> [u8; 16] {
|
||||||
let addr16 = [
|
let addr16 = [
|
||||||
value[0].to_be(),
|
value[0].to_be(),
|
||||||
|
Loading…
Reference in New Issue
Block a user