mirror of
https://github.com/tilleul/apple2.git
synced 2026-12-02 23:44:19 +00:00
Update 01_use_addition_instead_of_mul2.md
This commit is contained in:
1 parent
4b4c72cb37
commit
0edf888ae7
1 file changed
+1
-1
@@ -9,7 +9,7 @@ Where fundamentals in mathematics might be useful for speed.
|
||||
|
||||
And when you're multiplying by 2, it's faster to use the addition counterpart.
|
||||
|
||||
This is **always** true if what you want to do is ``A=2*B`` and that you use variables and replace hardcoded constants with variables (see section [Use variables as placeholders for constant values](#1-use-variables-as-placeholders-for-constant-values)). If you don't, you might get mitigated results.
|
||||
This is **always** true if what you want to do is ``A=2*B`` and that you use variables and replace hardcoded constants with variables. If you don't, you might get mitigated results.
|
||||
|
||||
Demonstration:
|
||||
|
||||
|
||||
Reference in new issue
Block a user