def Gfm.inv
import bend-osdev-gf@0.1.1.0/gfm.bend as Gfmimport Base
97# a^-1 = a^(2^m - 2); the inverse of 0 is 0
98def Gfm.inv(+f: GfmField, +a: U32) -> U32:
99 Gfm.pow(f, a, U32.sub(Gfm.mask(f), 1))
import bend-osdev-gf@0.1.1.0/gfm.bend as Gfmimport Base
97# a^-1 = a^(2^m - 2); the inverse of 0 is 0
98def Gfm.inv(+f: GfmField, +a: U32) -> U32:
99 Gfm.pow(f, a, U32.sub(Gfm.mask(f), 1))