Tables.Gf8Tab.mul: def of bend-osdev-gf@0.1.1.0 Import: import bend-osdev-gf@0.1.1.0/tables.bend as Tables Lines 92-96 of bend-osdev-gf@0.1.1.0/tables.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-gf@0.1.1.0/tables.bend&start_line=92&end_line=96 import Base import bend-osdev-gf@0.1.1.0/gf.bend as G # a * b = exp[log a + log b], or 0 if either is 0 def Gf8Tab.mul(t: Gf8Tab, a: U32, b: U32) -> Gf8Tab & U32: +x = G.Gf8.elt(a) +y = G.Gf8.elt(b) gf8tab.two.pick(Bool.or(U32.is_eq(x, 0), U32.is_eq(y, 0)), t, x, y, False{}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.1.0/gf.bend&name=Gf8.elt https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.1.0/tables.bend&name=Gf8Tab https://jend.leeeet.dev/definition.txt?path=bend-osdev-gf@0.1.1.0/tables.bend&name=gf8tab.two.pick