def Gf8Tab.mul
import bend-osdev-gf@0.1.1.0/tables.bend as Tablesimport Base
import bend-osdev-gf@0.1.1.0/gf.bend as G
92# a * b = exp[log a + log b], or 0 if either is 0
93def Gf8Tab.mul(t: Gf8Tab, a: U32, b: U32) -> Gf8Tab & U32:
94 +x = G.Gf8.elt(a)
95 +y = G.Gf8.elt(b)
96 gf8tab.two.pick(Bool.or(U32.is_eq(x, 0), U32.is_eq(y, 0)), t, x, y, False{})