Skip to content

Commit 11ced38

Browse files
committed
Remove #[unadjusted_on_win64] from __float functions
These no longer use unadjusted ABI as of https://reviews.llvm.org/D110413.
1 parent d5e097e commit 11ced38

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/float/conv.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ intrinsics! {
109109
}
110110
}
111111

112-
#[unadjusted_on_win64]
113112
pub extern "C" fn __floattisf(i: i128) -> f32 {
114113
int_to_float(i)
115114
}
116115

117-
#[unadjusted_on_win64]
118116
pub extern "C" fn __floattidf(i: i128) -> f64 {
119117
int_to_float(i)
120118
}
@@ -141,12 +139,10 @@ intrinsics! {
141139
int_to_float(i)
142140
}
143141

144-
#[unadjusted_on_win64]
145142
pub extern "C" fn __floatuntisf(i: u128) -> f32 {
146143
int_to_float(i)
147144
}
148145

149-
#[unadjusted_on_win64]
150146
pub extern "C" fn __floatuntidf(i: u128) -> f64 {
151147
int_to_float(i)
152148
}
@@ -224,7 +220,7 @@ intrinsics! {
224220
float_to_int(f)
225221
}
226222

227-
#[unadjusted_on_win64]
223+
#[win64_128bit_abi_hack]
228224
pub extern "C" fn __fixsfti(f: f32) -> i128 {
229225
float_to_int(f)
230226
}
@@ -239,7 +235,7 @@ intrinsics! {
239235
float_to_int(f)
240236
}
241237

242-
#[unadjusted_on_win64]
238+
#[win64_128bit_abi_hack]
243239
pub extern "C" fn __fixdfti(f: f64) -> i128 {
244240
float_to_int(f)
245241
}
@@ -254,7 +250,7 @@ intrinsics! {
254250
float_to_int(f)
255251
}
256252

257-
#[unadjusted_on_win64]
253+
#[win64_128bit_abi_hack]
258254
pub extern "C" fn __fixunssfti(f: f32) -> u128 {
259255
float_to_int(f)
260256
}
@@ -269,7 +265,7 @@ intrinsics! {
269265
float_to_int(f)
270266
}
271267

272-
#[unadjusted_on_win64]
268+
#[win64_128bit_abi_hack]
273269
pub extern "C" fn __fixunsdfti(f: f64) -> u128 {
274270
float_to_int(f)
275271
}

0 commit comments

Comments
 (0)