File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ fn main() {
57
57
|| target. arch == "powerpc"
58
58
|| target. arch == "powerpc64"
59
59
|| target. arch == "powerpc64le"
60
+ || target. arch == "loongarch64"
60
61
|| ( target. arch == "x86" && !target. has_feature ( "sse" ) )
61
62
|| target. os == "windows"
62
63
// Linking says "error: function signature mismatch: __extendhfsf2" and seems to
Original file line number Diff line number Diff line change @@ -306,7 +306,11 @@ mod extend {
306
306
}
307
307
308
308
#[ cfg( all( f16_enabled, f128_enabled) ) ]
309
- #[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
309
+ #[ cfg( not( any(
310
+ target_arch = "powerpc" ,
311
+ target_arch = "powerpc64" ,
312
+ target_arch = "loongarch64"
313
+ ) ) ) ]
310
314
f_to_f ! {
311
315
extend,
312
316
f16 => f32 , Half => Single , __extendhfsf2, not( feature = "no-sys-f16" ) ;
@@ -335,7 +339,11 @@ mod trunc {
335
339
}
336
340
337
341
#[ cfg( all( f16_enabled, f128_enabled) ) ]
338
- #[ cfg( not( any( target_arch = "powerpc" , target_arch = "powerpc64" ) ) ) ]
342
+ #[ cfg( not( any(
343
+ target_arch = "powerpc" ,
344
+ target_arch = "powerpc64" ,
345
+ target_arch = "loongarch64"
346
+ ) ) ) ]
339
347
f_to_f ! {
340
348
trunc,
341
349
f32 => f16, Single => Half , __truncsfhf2, not( feature = "no-sys-f16" ) ;
You can’t perform that action at this time.
0 commit comments