File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
crates/core_arch/src/loongarch64 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -329,16 +329,18 @@ pub unsafe fn asrtgt(a: i64, b: i64) {
329
329
330
330
/// Loads the page table directory entry
331
331
#[ inline]
332
+ #[ rustc_legacy_const_generics( 1 ) ]
332
333
#[ unstable( feature = "stdarch_loongarch" , issue = "117427" ) ]
333
- pub unsafe fn lddir ( a : i64 , b : i64 ) -> i64 {
334
- __lddir ( a, b )
334
+ pub unsafe fn lddir < const B : i64 > ( a : i64 ) -> i64 {
335
+ __lddir ( a, B )
335
336
}
336
337
337
338
/// Loads the page table entry
338
339
#[ inline]
340
+ #[ rustc_legacy_const_generics( 1 ) ]
339
341
#[ unstable( feature = "stdarch_loongarch" , issue = "117427" ) ]
340
- pub unsafe fn ldpte ( a : i64 , b : i64 ) {
341
- __ldpte ( a, b )
342
+ pub unsafe fn ldpte < const B : i64 > ( a : i64 ) {
343
+ __ldpte ( a, B )
342
344
}
343
345
344
346
/// Calculate the approximate single-precision result of 1.0 divided
You can’t perform that action at this time.
0 commit comments