simplify call

This commit is contained in:
Mark Canlas 2020-08-12 21:13:30 -04:00
parent e5a2830be6
commit 628e160931

View File

@ -222,11 +222,11 @@ object MatchOpcodes {
val BitPattern = ThreeBits >> ThreeBits >> TwoBits
n match {
case BitPattern(aaabbb, cc) =>
case BitPattern((aaa, bbb), cc) =>
cc match {
case 0 => (c00 _).tupled(aaabbb).some
case 1 => (c01 _).tupled(aaabbb).some
case 2 => (c10 _).tupled(aaabbb).some
case 0 => c00(aaa, bbb).some
case 1 => c01(aaa, bbb).some
case 2 => c10(aaa, bbb).some
case 3 => None
}
}