Skip to content

Commit 6a03acb

Browse files
whyvlarmfazh
andauthored
Update math/gf8192/gf8192.go
Co-authored-by: Armando Faz <armfazh@users.noreply.github.com>
1 parent ab6b880 commit 6a03acb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

math/gf8192/gf8192.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ func sqr2Mul(a, b Gf) Gf {
114114

115115
// Inv calculates the multiplicative inverse of Gf element a
116116
func Inv(a Gf) Gf {
117-
return Div(a, 1)
117+
return Div(1, a)
118118
}
119119

120120
// Div calculates a / b
121-
func Div(b, a Gf) Gf {
121+
func Div(a, b Gf) Gf {
122122
tmp3 := sqrMul(b, b) // b^3
123123
tmp15 := sqr2Mul(tmp3, tmp3) // b^15 = b^(3*2*2+3)
124124
out := sqr2(tmp15)

0 commit comments

Comments
 (0)