1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

MergeFunctions.rst - multiply vs shift typo (PR44717)

The doc is suggesting that a mul-by-2 is the same as a ashr-by-1 instead of shl-by-1

Differential Revision: https://reviews.llvm.org/D76566
This commit is contained in:
Simon Pilgrim 2020-03-23 10:13:25 +00:00
parent f055ede86f
commit 65737a4b86

View File

@ -99,8 +99,8 @@ and a ``void*`` as equal.
This is just an example; more possible details are described a bit below.
As another example, the reader may imagine two more functions. The first
function performs a multiplication on 2, while the second one performs an
arithmetic right shift on 1.
function performs a multiplication by 2, while the second one performs an
logical left shift by 1.
Possible solutions
^^^^^^^^^^^^^^^^^^