Tables.Gf8Tab.div: def of bend-osdev-gf@0.1.1.0 Import: import bend-osdev-gf@0.1.1.0/tables.bend as Tables Lines 98-102 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=98&end_line=102 import Base import bend-osdev-gf@0.1.1.0/gf.bend as G # a / b = exp[log a + 255 - log b], or 0 if either is 0 (as Gf8.div) def Gf8Tab.div(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, True{}) 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