Multiplication is faster than bit shifting

This commit is contained in:
Bond_009
2019-10-20 12:31:59 +02:00
parent b6627af65f
commit 593107e190
3 changed files with 6 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ namespace MediaBrowser.Common
break; // Unreachable
}
bytes[j] = (byte)((a << 4) | b);
bytes[j] = (byte)((a * 16) | b);
}
return bytes;