mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Rollup merge of #39472 - est31:unadjusted_only_for_win, r=nagisa
Don't use "unadjusted" ABI on non windows platforms We introduced the unadjusted ABI to work around wrong (buggy) ABI expectations by LLVM on Windows [1]. Therefore, it should be solely used on Windows and not on other platforms, like right now is the case. [1]: see this comment for details https://github.com/rust-lang/rust/pull/38482#issuecomment-269074031
This commit is contained in:
@@ -652,17 +652,17 @@ mod imp {
|
||||
}
|
||||
|
||||
#[export_name="__fixunssfti"]
|
||||
pub extern "unadjusted" fn f32_as_u128(a: f32) -> u128 {
|
||||
pub extern $unadj fn f32_as_u128(a: f32) -> u128 {
|
||||
float_as_unsigned!(a, f32, u128)
|
||||
}
|
||||
|
||||
#[export_name="__fixdfti"]
|
||||
pub extern "unadjusted" fn f64_as_i128(a: f64) -> i128 {
|
||||
pub extern $unadj fn f64_as_i128(a: f64) -> i128 {
|
||||
float_as_signed!(a, f64, i128)
|
||||
}
|
||||
|
||||
#[export_name="__fixsfti"]
|
||||
pub extern "unadjusted" fn f32_as_i128(a: f32) -> i128 {
|
||||
pub extern $unadj fn f32_as_i128(a: f32) -> i128 {
|
||||
float_as_signed!(a, f32, i128)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user