mirror of
https://github.com/tilleul/apple2.git
synced 2025-02-18 10:30:33 +00:00
Update 01_use_addition_instead_of_mul2.md
This commit is contained in:
parent
4b4c72cb37
commit
0edf888ae7
@ -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.
|
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:
|
Demonstration:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user