@@ -40,7 +40,7 @@ Inline assembly is currently supported on the following architectures:
40
40
<!--
41
41
Let us start with the simplest possible example:
42
42
-->
43
- 最も単純な例から始めましょう:
43
+ 最も単純な例から始めましょう。
44
44
45
45
``` rust
46
46
# #[cfg(target_arch = " x86_64" )] {
@@ -72,8 +72,8 @@ in the first argument of the `asm!` macro as a string literal.
72
72
Now inserting an instruction that does nothing is rather boring. Let us do something that
73
73
actually acts on data:
74
74
-->
75
- 何もしない命令を挿入しても面白くないですよね 。
76
- 実際にデータを操作してみましょう:
75
+ 何もしない命令を挿入しても面白くありません 。
76
+ 実際にデータを操作してみましょう。
77
77
78
78
``` rust
79
79
# #[cfg(target_arch = " x86_64" )] {
@@ -115,7 +115,7 @@ the template and will read the variable from there after the inline assembly fin
115
115
<!--
116
116
Let us see another example that also uses an input:
117
117
-->
118
- 入力を利用する別の例を見てみましょう:
118
+ 入力を利用する別の例を見てみましょう。
119
119
120
120
``` rust
121
121
# #[cfg(target_arch = " x86_64" )] {
@@ -146,7 +146,7 @@ and then adding `5` to it.
146
146
<!--
147
147
The example shows a few things:
148
148
-->
149
- この例はいくつかのことを示します:
149
+ この例はいくつかのことを示します。
150
150
151
151
<!--
152
152
First, we can see that `asm!` allows multiple template string arguments; each
@@ -177,7 +177,7 @@ readability, and allows reordering instructions without changing the argument or
177
177
<!--
178
178
We can further refine the above example to avoid the `mov` instruction:
179
179
-->
180
- 上記の例をさらに改善して、` mov ` 命令を避けることもできます:
180
+ 上記の例をさらに改善して、` mov ` 命令を避けることもできます。
181
181
182
182
``` rust
183
183
# #[cfg(target_arch = " x86_64" )] {
@@ -201,7 +201,7 @@ This is different from specifying an input and output separately in that it is g
201
201
<!--
202
202
It is also possible to specify different variables for the input and output parts of an `inout` operand:
203
203
-->
204
- ` inout ` のオペランドとして、入力と出力それぞれに異なる変数を指定することも可能です:
204
+ ` inout ` のオペランドとして、入力と出力それぞれに異なる変数を指定することも可能です。
205
205
206
206
``` rust
207
207
# #[cfg(target_arch = " x86_64" )] {
@@ -241,7 +241,7 @@ Rustコンパイラはオペランドの割り当てに保守的です。
241
241
<!--
242
242
Here is an example where `inlateout` *cannot* be used in `release` mode or other optimized cases:
243
243
-->
244
- 以下は、` release ` モードやその他の最適化された場合に、` inout ` を利用 * できない* 例です:
244
+ 以下は、` release ` モードやその他の最適化された場合に、` inout ` を利用 * できない* 例です。
245
245
246
246
``` rust
247
247
# #[cfg(target_arch = " x86_64" )] {
@@ -343,7 +343,7 @@ In this example we call the `out` instruction to output the content of the `cmd`
343
343
<!--
344
344
Consider this example which uses the x86 `mul` instruction:
345
345
-->
346
- x86の` mul ` 命令を使った次の例を考えてみましょう:
346
+ x86の` mul ` 命令を使った次の例を考えてみましょう。
347
347
348
348
``` rust
349
349
# #[cfg(target_arch = " x86_64" )] {
@@ -492,7 +492,7 @@ To work around this we use `rdi` to store the pointer to the output array, save
492
492
This can also be used with a general register class to obtain a scratch register for use inside the asm code:
493
493
-->
494
494
アセンブリコード内部で利用するスクラッチレジスタを獲得するために、
495
- 汎用レジスタクラスとともに使用することもできます:
495
+ 汎用レジスタクラスとともに使用することもできます。
496
496
497
497
``` rust
498
498
# #[cfg(target_arch = " x86_64" )] {
@@ -655,7 +655,7 @@ fn load_fpu_control_word(control: u16) {
655
655
Any reuse of a named label, local or otherwise, can result in an assembler or linker error or may cause other strange behavior. Reuse of a named label can happen in a variety of ways including:
656
656
-->
657
657
名前つきラベルの再利用は、ローカルかそうでないかに関わらず、アセンブラやリンカのエラーを引き起こしたり、変な挙動の原因となります。
658
- 名前つきラベルの再利用は以下のようなケースがあります:
658
+ 名前つきラベルの再利用は以下のようなケースがあります。
659
659
660
660
<!--
661
661
- explicitly: using a label more than once in one `asm!` block, or multiple times across blocks.
@@ -711,7 +711,7 @@ This will decrement the `{0}` register value from 10 to 3, then add 2 and store
711
711
<!--
712
712
This example shows a few things:
713
713
-->
714
- この例は、以下のことを示しています:
714
+ この例は、以下のことを示しています。
715
715
716
716
<!--
717
717
- First, that the same number can be used as a label multiple times in the same inline block.
@@ -737,7 +737,7 @@ By default, an inline assembly block is treated the same way as an external FFI
737
737
<!--
738
738
Let's take our previous example of an `add` instruction:
739
739
-->
740
- 先ほどの` add ` 命令の例を見てみましょう:
740
+ 先ほどの` add ` 命令の例を見てみましょう。
741
741
742
742
``` rust
743
743
# #[cfg(target_arch = " x86_64" )] {
0 commit comments