You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")] {
@@ -272,7 +272,7 @@ The above could work well in unoptimized cases (`Debug` mode), but if you want o
272
272
That is because in optimized cases, the compiler is free to allocate the same register for inputs `b` and `c` since it knows they have the same value. However it must allocate a separate register for `a` since it uses `inout` and not `inlateout`. If `inlateout` was used, then `a` and `c` could be allocated to the same register, in which case the first instruction to overwrite the value of `c` and cause the assembly code to produce the wrong result.
0 commit comments