def Gf8Tab.log

bend-osdev-gf@0.1.1.0 · tables.bend:60

import bend-osdev-gf@0.1.1.0/tables.bend as Tables
import Base
import bend-osdev-gf@0.1.1.0/gf.bend as G

60# the logarithm of a nonzero a (0 for a = 0)
61def Gf8Tab.log(t: Gf8Tab, a: U32) -> Gf8Tab & U32:
62  match t:
63    case Gf8Tab{e, l}:
64      gf8tab.log.fin(e, Array.get(U32, l, G.Gf8.elt(a)))

Uses (6)

Used by (3)