Remove optimization from Multiply(ref BigInteger)
authorts2do <tsdodo@gmail.com>
Sat, 30 Nov 2019 21:40:52 +0000 (15:40 -0600)
committerts2do <tsdodo@gmail.com>
Sat, 30 Nov 2019 21:40:52 +0000 (15:40 -0600)
src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs

index 916c50d..726973b 100644 (file)
@@ -1025,19 +1025,8 @@ namespace System
 
             public void Multiply(ref BigInteger value)
             {
-                switch (value._length)
-                {
-                    case 0:
-                        SetZero(out this);
-                        break;
-                    case 1:
-                        Multiply(value._blocks[0]);
-                        break;
-                    default:
-                        SetValue(out BigInteger temp, ref this);
-                        Multiply(ref temp, ref value, out this);
-                        break;
-                }
+                SetValue(out BigInteger temp, ref this);
+                Multiply(ref temp, ref value, out this);
             }
 
             public void Multiply10()