Skip to content

Commit aae9da0

Browse files
committed
Translate untranslated lines in asm.md
1 parent c7665dd commit aae9da0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unsafe/asm.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,18 @@ To work around this we use `rdi` to store the pointer to the output array, save
488488
`push``pop`は完全な64ビットの`rbx`レジスタを使って、レジスタ全体を確実に保存しています。
489489
32ビットの場合、`push``pop`において`ebx`がかわりに利用されるでしょう。
490490

491+
<!--
491492
This can also be used with a general register class to obtain a scratch register for use inside the asm code:
493+
-->
494+
アセンブリコード内部で利用するスクラッチレジスタを獲得するために、
495+
汎用レジスタクラスとともに使用することもできます:
492496

493497
```rust
494498
# #[cfg(target_arch = "x86_64")] {
495499
use std::arch::asm;
496500

497501
// Multiply x by 6 using shifts and adds
502+
// シフト演算と加算を利用してxに6をかける
498503
let mut x: u64 = 4;
499504
unsafe {
500505
asm!(

0 commit comments

Comments
 (0)